public class ConcatKDFParameters extends Object
Note: The attribute values that are assigned using the setter methods or the
ConcatKDFParameters(String, byte[], byte[], byte[]) constructor should not be padded according to the
XML encryption standard (see ConcatKDFParams). Only the actual value should be assigned.
If you, for some reason, need to assign an attribute value whose bit length is not divisible by 8, you need to create
a ConcatKDFParams object and assign it using ConcatKDFParameters(ConcatKDFParams).
| Modifier and Type | Field and Description |
|---|---|
static byte[] |
DEFAULT_ALGORITHM_ID
Default value for the mandatory attribute AlgorithmID.
|
static byte[] |
DEFAULT_PARTY_UINFO
Default value for mandatory attribute PartyUInfo.
|
static byte[] |
DEFAULT_PARTY_VINFO
Default value for mandatory attribute PartyVInfo.
|
| Constructor and Description |
|---|
ConcatKDFParameters(ConcatKDFParams params)
Constructor that creates the object from the supplied
XMLObject representation of ConcatKDFParams. |
ConcatKDFParameters(String digestMethod)
A constructor that assigns the digest method and also assigns default values for AlgorithmID, PartyUInfo and
PartyVInfo.
|
ConcatKDFParameters(String digestMethod,
byte[] algorithmID,
byte[] partyUInfo,
byte[] partyVInfo)
Constructor assigning the digest method and the mandatory ConcatKDFParams attributes.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getDigestMethod()
Returns the DigestMethod of the ConcatKDF parameters.
|
void |
setAlgorithmID(byte[] algorithmID)
Sets the AlgorithmID attribute.
|
void |
setPartyUInfo(byte[] partyUInfo)
Sets the PartyUIInfo attribute.
|
void |
setPartyVInfo(byte[] partyVInfo)
Sets the PartyVInfo attribute.
|
void |
setSuppPrivInfo(byte[] suppPrivInfo)
Sets the SuppPrivInfo attribute.
|
void |
setSuppPubInfo(byte[] suppPubInfo)
Sets the SuppPubInfo attribute.
|
ConcatKDFParams |
toXMLObject()
Transforms this object into the OpenSAML
XMLObject representation of the ConcatKDF parameters. |
public static final byte[] DEFAULT_ALGORITHM_ID
public static final byte[] DEFAULT_PARTY_UINFO
public static final byte[] DEFAULT_PARTY_VINFO
public ConcatKDFParameters(String digestMethod)
digestMethod - the digest methodpublic ConcatKDFParameters(String digestMethod, byte[] algorithmID, byte[] partyUInfo, byte[] partyVInfo)
digestMethod - the digest methodalgorithmID - the AlgorithmID attributepartyUInfo - the PartyUInfo attributepartyVInfo - the PartyVInfo attributepublic ConcatKDFParameters(ConcatKDFParams params)
XMLObject representation of ConcatKDFParams.params - XML objectpublic ConcatKDFParams toXMLObject()
XMLObject representation of the ConcatKDF parameters.ConcatKDFParams objectpublic String getDigestMethod()
public void setAlgorithmID(byte[] algorithmID)
algorithmID - the AlgorithmID attributepublic void setPartyUInfo(byte[] partyUInfo)
partyUInfo - the PartyUIInfo attributepublic void setPartyVInfo(byte[] partyVInfo)
partyVInfo - the PartyVInfo attributepublic void setSuppPubInfo(byte[] suppPubInfo)
suppPubInfo - the SuppPubInfo attributepublic void setSuppPrivInfo(byte[] suppPrivInfo)
suppPrivInfo - the SuppPrivInfo attributeCopyright © 2020 Sweden Connect. All rights reserved.