|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Represents configuration of EncryptedKey element defined by XML Encryption specification.
It is based on EncryptedTypeConf
.
Sender side
It represents a key used in next processing (encryption/signature).
MessageConf
order
in processing. For more information check OrderedElementConf
.
ElementConf.setWsuId(java.lang.String)
. For more information check ElementConf
.
setEncodedStoredKey(byte[])
. If the key is not set, it is generated.
setReferences(org.systinet.wasp.security.ws.conf.EncryptionReferenceConf[])
references to EncryptedKeyConf
or EncryptedDataConf
that uses stored key.
EncryptionMethodAlgorithm
.
Available values are: Constants.ALGO_ID_KEYTRANSPORT_RSA15
,
Constants.ALGO_ID_KEYTRANSPORT_RSAOAEP
.
EncryptedTypeConf.setEncryptionMethodProperties(org.systinet.wasp.security.ws.conf.PropertyConf[])
. Currently
only Constants#ALGO_ID_KEYTRANSPORT_RSAOAEP
requires follwoing properties:
Constants.EMP_OAEPDigest
Constants.EMP_OAEPParams
EncryptedKey
then configuration of KeyInfo must be KeyInfo
must be provided and set using EncryptedTypeConf.setKeyInfo(org.systinet.wasp.security.ws.conf.KeyInfoConf)
.
EncryptedTypeConf.setIV(byte[])
.
WSSEProviderConf
.
It is not recommeded to set the key in persistent descriptor, because key is usually symmetric key that shall
be changed for each message.
Receiver
Receiver can check received message configuration's encrypted key using IncomingValidator
.
Method Summary | |
byte[] |
getEncodedStoredKey()
Gets key that is stored in this EncryptedKey. |
EncryptionReferenceConf[] |
getReferences()
Returns an array of EncryptionReferenceConf that represents
ReferenceList element. |
EncryptionReferenceConf |
newReference()
Creates new instance of EncryptionReferenceConf . |
void |
setEncodedStoredKey(byte[] key)
Sets key that is stored in this EncryptedKey. |
void |
setReferences(EncryptionReferenceConf[] referenceList)
Sets ReferenceList element with an array of EncryptionReferenceConf . |
Methods inherited from interface org.systinet.wasp.security.ws.conf.EncryptedTypeConf |
getEncryptionMethodAlgorithm, getEncryptionMethodProperties, getIV, getKeyInfo, newEncryptionMethodProperty, newKeyInfo, setEncryptionMethodAlgorithm, setEncryptionMethodProperties, setIV, setKeyInfo |
Methods inherited from interface org.systinet.wasp.security.ws.conf.OrderedElementConf |
getOrder, setOrder |
Methods inherited from interface org.systinet.wasp.security.ws.conf.ElementConf |
getWsuId, setWsuId |
Method Detail |
public void setReferences(EncryptionReferenceConf[] referenceList)
EncryptionReferenceConf
.
XML Encryption's ReferenceList is an element that contains references to
another EncryptedData or EncryptedKeys that use Key transported by this EncryptedKey.
referenceList
- array of EncryptionReferenceConf
newReference()
,
getReferences()
public EncryptionReferenceConf[] getReferences()
EncryptionReferenceConf
that represents
ReferenceList element.
setReferences(EncryptionReferenceConf[])
public EncryptionReferenceConf newReference()
EncryptionReferenceConf
.
setReferences(EncryptionReferenceConf[])
public void setEncodedStoredKey(byte[] key)
SecureRandom
in runtime.
key
- encoded key as returned by Key.getEncoded()
.getEncodedStoredKey()
public byte[] getEncodedStoredKey()
setEncodedStoredKey(byte[])
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |