|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Represents configuration of EncryptedData element defined by XML Encryption specification.
It is based on EncryptedTypeConf
.
Sender side
It represents a part of message that will be encrypted using specified algorithms and keys.
MessageConf
order
in processing. For more information check OrderedElementConf
.
ElementConf.setWsuId(java.lang.String)
. For more information check ElementConf
.
wsu:Id
of element
is known then setEncryptionTargetId(java.lang.String)
. Otherwise only Body
element can be specify using setEncryptBody(java.lang.Boolean)
.
There can be only one specified element.
setEncryptElementContent(java.lang.Boolean)
.
EncryptionMethodAlgorithm
.
Available values are: Constants.ALGO_ID_BLOCKCIPHER_TRIPLEDES
,
Constants.ALGO_ID_BLOCKCIPHER_AES128
,
Constants.ALGO_ID_BLOCKCIPHER_AES192
and
Constants.ALGO_ID_BLOCKCIPHER_AES256
.
EncryptedTypeConf.setEncryptionMethodProperties(org.systinet.wasp.security.ws.conf.PropertyConf[])
. Currently
available alogrithms does not requires properties.
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
.
WSSEGlobalConf
.
Receiver
Receiver can check received message configuration's encrypted data using IncomingValidator
.
Method Summary | |
java.lang.Boolean |
getEncryptBody()
Returns Boolean.TRUE if Body is encrypted. |
java.lang.Boolean |
getEncryptElementContent()
Returns selected mode of element encryption. |
java.lang.String |
getEncryptionTargetId()
Returns Id of element that is selected for encryption or null if it is not set. |
void |
setEncryptBody(java.lang.Boolean encryptBody)
Sets encryption target to the message Body. |
void |
setEncryptElementContent(java.lang.Boolean encryptElementContent)
Sets mode of encryption. |
void |
setEncryptionTargetId(java.lang.String targetId)
Sets identifier of element selected for encryption. |
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 setEncryptElementContent(java.lang.Boolean encryptElementContent)
true
,
it encrypts element content, otherwise it encrypts the whole element.
encryptElementContent
- type of encryption (content/whole element)getEncryptElementContent()
public java.lang.Boolean getEncryptElementContent()
setEncryptElementContent(Boolean)
public void setEncryptBody(java.lang.Boolean encryptBody)
encryptionTargetId
MUST be set to null
.
This method sets encryption target identifier to body identifier.
encryptBody
- declares if it encrypts Body element of SOAP messagegetEncryptBody()
,
setEncryptionTargetId(String)
public java.lang.Boolean getEncryptBody()
Boolean.TRUE
if Body is encrypted.
Boolean.TRUE
if SOAP Body is encrypted.setEncryptBody(Boolean)
public void setEncryptionTargetId(java.lang.String targetId)
encryptBody
should remain unset or set to null
.
targetId
- identifier of element selected for encryptiongetEncryptionTargetId()
,
setEncryptBody(Boolean)
public java.lang.String getEncryptionTargetId()
null
if it is not set.
setEncryptionTargetId(String)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |