org.systinet.wasp.security.ws.conf
Interface EncryptedDataConf

All Superinterfaces:
ElementConf, EncryptedTypeConf, OrderedElementConf

public interface EncryptedDataConf
extends EncryptedTypeConf

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.

Receiver
Receiver can check received message configuration's encrypted data using IncomingValidator.

Since:
4.6
Component:
Security-Providers

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

setEncryptElementContent

public void setEncryptElementContent(java.lang.Boolean encryptElementContent)
Sets mode of encryption. If it is set to true, it encrypts element content, otherwise it encrypts the whole element.

Parameters:
encryptElementContent - type of encryption (content/whole element)
See Also:
getEncryptElementContent()

getEncryptElementContent

public java.lang.Boolean getEncryptElementContent()
Returns selected mode of element encryption.

Returns:
selected type of element encryption.
See Also:
setEncryptElementContent(Boolean)

setEncryptBody

public void setEncryptBody(java.lang.Boolean encryptBody)
Sets encryption target to the message Body. If it is set then the encryptionTargetId MUST be set to null. This method sets encryption target identifier to body identifier.

Parameters:
encryptBody - declares if it encrypts Body element of SOAP message
See Also:
getEncryptBody(), setEncryptionTargetId(String)

getEncryptBody

public java.lang.Boolean getEncryptBody()
Returns Boolean.TRUE if Body is encrypted.

Returns:
Boolean.TRUE if SOAP Body is encrypted.
See Also:
setEncryptBody(Boolean)

setEncryptionTargetId

public void setEncryptionTargetId(java.lang.String targetId)
Sets identifier of element selected for encryption. If it is set, the encryptBody should remain unset or set to null.

Parameters:
targetId - identifier of element selected for encryption
See Also:
getEncryptionTargetId(), setEncryptBody(Boolean)

getEncryptionTargetId

public java.lang.String getEncryptionTargetId()
Returns Id of element that is selected for encryption or null if it is not set.

Returns:
Id of element that is selected for encryption
See Also:
setEncryptionTargetId(String)