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

All Superinterfaces:
ElementConf, OrderedElementConf

public interface SignatureConf
extends OrderedElementConf

Represents Signature and its SignedInfo, defined by XML Signature specification.

Sender side

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

Since:
4.6
Component:
Security-Providers

Method Summary
 java.lang.String getCanonicalizationMethod()
          Gets canonicalization method of XML Signature's SignedInfo elements.
 KeyInfoConf getKeyInfo()
          Gets configuration of key information that allows to sign and/or validate the XML Signature's SignedInfo.
 ReferenceConf[] getReferences()
          Gets references to signed objects.
 java.lang.String getSignatureMethod()
          Gets the algorithm that is used to convert the canonicalized signed info into the signature value.
 java.lang.Boolean getSignBody()
          Gets a flag that indicates whether to sign message body or not.
 KeyInfoConf newKeyInfo()
          Creates new instance of KeyInfoConf.
 ReferenceConf newReference()
          Creates new instance of ReferenceConf.
 void setCanonicalizationMethod(java.lang.String method)
          Sets canonicalization method that is used to canonicalize XML Signature's SignedInfo element.
 void setKeyInfo(KeyInfoConf keyInfo)
          Sets configuration of key information that allows to sign and/or validate the XML Signature's SignedInfo.
 void setReferences(ReferenceConf[] referenceConfs)
          Sets references to signed objects, mandatory part of SignedInfo.
 void setSignatureMethod(java.lang.String signatureMethod)
          Sets the algorithm that is used to convert the canonicalized signed info into the signature value.
 void setSignBody(java.lang.Boolean signBody)
          Sets a flag that indicates whether to sign message body or not.
 
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

setReferences

public void setReferences(ReferenceConf[] referenceConfs)
Sets references to signed objects, mandatory part of SignedInfo.

Parameters:
referenceConfs - reference configurations
See Also:
getReferences(), newReference()

getReferences

public ReferenceConf[] getReferences()
Gets references to signed objects.

Returns:
reference configurations
See Also:
setReferences(org.systinet.wasp.security.ws.conf.ReferenceConf[])

newReference

public ReferenceConf newReference()
Creates new instance of ReferenceConf.

Returns:
instance that is supposed to be filled by valid data
See Also:
setReferences(org.systinet.wasp.security.ws.conf.ReferenceConf[])

setCanonicalizationMethod

public void setCanonicalizationMethod(java.lang.String method)
Sets canonicalization method that is used to canonicalize XML Signature's SignedInfo element.

Parameters:
method - canonicalization method identifier
See Also:
getCanonicalizationMethod(), Constants.ALGO_ID_C14N_EXCL_OMIT_COMMENTS, setCanonicalizationMethod(java.lang.String), Constants.ALGO_ID_C14N_EXCL_OMIT_COMMENTS, Constants.ALGO_ID_C14N_EXCL_WITH_COMMENTS, Constants.ALGO_ID_C14N_OMIT_COMMENTS, Constants.ALGO_ID_C14N_WITH_COMMENTS

getCanonicalizationMethod

public java.lang.String getCanonicalizationMethod()
Gets canonicalization method of XML Signature's SignedInfo elements.

Returns:
canonicaliztion method identifier
See Also:
setCanonicalizationMethod(java.lang.String), Constants.ALGO_ID_C14N_EXCL_OMIT_COMMENTS, Constants.ALGO_ID_C14N_EXCL_WITH_COMMENTS, Constants.ALGO_ID_C14N_OMIT_COMMENTS, Constants.ALGO_ID_C14N_WITH_COMMENTS

setSignatureMethod

public void setSignatureMethod(java.lang.String signatureMethod)
Sets the algorithm that is used to convert the canonicalized signed info into the signature value.

Parameters:
signatureMethod - signature method identifier
See Also:
getSignatureMethod(), Constants.ALGO_ID_SIGNATURE_RSA, Constants.ALGO_ID_SIGNATURE_DSA, Constants.ALGO_ID_SIGNATURE_MAC_HMAC_SHA1

getSignatureMethod

public java.lang.String getSignatureMethod()
Gets the algorithm that is used to convert the canonicalized signed info into the signature value.

Returns:
signature method identifier
See Also:
setSignatureMethod(java.lang.String), Constants.ALGO_ID_SIGNATURE_RSA, Constants.ALGO_ID_SIGNATURE_DSA, Constants.ALGO_ID_SIGNATURE_MAC_HMAC_SHA1

setKeyInfo

public void setKeyInfo(KeyInfoConf keyInfo)
Sets configuration of key information that allows to sign and/or validate the XML Signature's SignedInfo.

Parameters:
keyInfo - key info configuration
See Also:
newKeyInfo(), getKeyInfo()

getKeyInfo

public KeyInfoConf getKeyInfo()
Gets configuration of key information that allows to sign and/or validate the XML Signature's SignedInfo.

Returns:
key info configuration
See Also:
setKeyInfo(org.systinet.wasp.security.ws.conf.KeyInfoConf)

newKeyInfo

public KeyInfoConf newKeyInfo()
Creates new instance of KeyInfoConf.

Returns:
instance that is supposed to be filled by valid data
See Also:
setKeyInfo(org.systinet.wasp.security.ws.conf.KeyInfoConf)

setSignBody

public void setSignBody(java.lang.Boolean signBody)
Sets a flag that indicates whether to sign message body or not. It's a shortcut for adding reference to message body, but the reference URI of message body element is left to the implementation.

Parameters:
signBody - true indicates that message body will be signed.
See Also:
getSignBody(), setReferences(org.systinet.wasp.security.ws.conf.ReferenceConf[])

getSignBody

public java.lang.Boolean getSignBody()
Gets a flag that indicates whether to sign message body or not.

Returns:
sign message body or not
See Also:
setSignBody(Boolean)