@ThreadSafe @Deprecated public class AESBasedPairwiseSubjectCodec extends PairwiseSubjectCodec
Warning: This codec is deprecated. Use
SIVAESBasedPairwiseSubjectCodec
instead.
The plain text is formatted as follows ('|' as delimiter):
sector_id|local_sub
Related specifications:
CHARSET
Constructor and Description |
---|
AESBasedPairwiseSubjectCodec(SecretKey aesKey,
byte[] salt)
Deprecated.
Creates a new AES-based codec for pairwise subject identifiers.
|
Modifier and Type | Method and Description |
---|---|
org.apache.commons.lang3.tuple.Pair<SectorID,Subject> |
decode(Subject pairwiseSubject)
Deprecated.
Decodes the specified pairwise subject identifier to produce the
matching sector identifier and local subject.
|
Subject |
encode(SectorID sectorID,
Subject localSub)
Deprecated.
Encodes a new pairwise subject identifier from the specified sector
identifier and local subject.
|
SecretKey |
getAESKey()
Deprecated.
Returns the AES key.
|
encode, getProvider, getSalt, setProvider
public AESBasedPairwiseSubjectCodec(SecretKey aesKey, byte[] salt)
aesKey
- The AES key. Must not be null
.salt
- The salt. Must not be null
.public Subject encode(SectorID sectorID, Subject localSub)
PairwiseSubjectCodec
encode
in class PairwiseSubjectCodec
sectorID
- The sector identifier. Must not be
null
.localSub
- The local subject identifier. Must not be
null
.public org.apache.commons.lang3.tuple.Pair<SectorID,Subject> decode(Subject pairwiseSubject) throws InvalidPairwiseSubjectException
PairwiseSubjectCodec
UnsupportedOperationException
. Codecs that support pairwise
subject identifier reversal should override this method.decode
in class PairwiseSubjectCodec
pairwiseSubject
- The pairwise subject identifier. Must be
valid and not null
.InvalidPairwiseSubjectException
- If the pairwise subject is
invalid.Copyright © 2017 Connect2id Ltd.. All rights reserved.