|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Represents Signature and its SignedInfo, defined by XML Signature specification.
Sender side
MessageConf
order
in processing. For more information check OrderedElementConf
.
ElementConf.setWsuId(java.lang.String)
. For more information check ElementConf
.
wsuId
s known, then only body
can be signed (body is signed using digest algorithm Constants.ALGO_ID_DIGEST_SHA1
and
transform algorithm Constants.TRANSFORM_C14N_EXCL_OMIT_COMMENTS
.
If there are wsuId
s known, then the ReferenceConf
are used to represent them.
setCanonicalizationMethod(java.lang.String)
is used to on the element before generation of signature and authentication. It can be one of:
setSignatureMethod(java.lang.String)
signature method is algorithm used for generating signature and authentication. It can be one of:
Constants.ALGO_ID_SIGNATURE_RSA
Constants.ST_VALUE_TYPE_X509V3
.
Constants.ALGO_ID_SIGNATURE_DSA
Constants.ST_VALUE_TYPE_X509V3
.
Constants.ALGO_ID_SIGNATURE_MAC_HMAC_SHA1
Constants.ST_VALUE_TYPE_SYMMETRICKEY
.
The symmetric token can be also retrieved from Constants.ST_VALUE_TYPE_USERNAME
security token
- the WSO2 SOA Enablement Server uses PSHA1 algorithm to count symmetric key from values of username token.
setKeyInfo(org.systinet.wasp.security.ws.conf.KeyInfoConf)
holds the signing and authotication key. Usually it contains reference to security token.
WSSEProviderConf
.
WSSEGlobalConf
.
Receiver
Receiver can check received message configuration's encrypted data using IncomingValidator
.
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 |
public void setReferences(ReferenceConf[] referenceConfs)
referenceConfs
- reference configurationsgetReferences()
,
newReference()
public ReferenceConf[] getReferences()
setReferences(org.systinet.wasp.security.ws.conf.ReferenceConf[])
public ReferenceConf newReference()
ReferenceConf
.
setReferences(org.systinet.wasp.security.ws.conf.ReferenceConf[])
public void setCanonicalizationMethod(java.lang.String method)
method
- canonicalization method identifiergetCanonicalizationMethod()
,
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
public java.lang.String getCanonicalizationMethod()
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
public void setSignatureMethod(java.lang.String signatureMethod)
signatureMethod
- signature method identifiergetSignatureMethod()
,
Constants.ALGO_ID_SIGNATURE_RSA
,
Constants.ALGO_ID_SIGNATURE_DSA
,
Constants.ALGO_ID_SIGNATURE_MAC_HMAC_SHA1
public java.lang.String getSignatureMethod()
setSignatureMethod(java.lang.String)
,
Constants.ALGO_ID_SIGNATURE_RSA
,
Constants.ALGO_ID_SIGNATURE_DSA
,
Constants.ALGO_ID_SIGNATURE_MAC_HMAC_SHA1
public void setKeyInfo(KeyInfoConf keyInfo)
keyInfo
- key info configurationnewKeyInfo()
,
getKeyInfo()
public KeyInfoConf getKeyInfo()
setKeyInfo(org.systinet.wasp.security.ws.conf.KeyInfoConf)
public KeyInfoConf newKeyInfo()
KeyInfoConf
.
setKeyInfo(org.systinet.wasp.security.ws.conf.KeyInfoConf)
public void setSignBody(java.lang.Boolean signBody)
signBody
- true
indicates that message body will be
signed.getSignBody()
,
setReferences(org.systinet.wasp.security.ws.conf.ReferenceConf[])
public java.lang.Boolean getSignBody()
setSignBody(Boolean)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |