|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.ws.security.message.WSSecBase
org.apache.ws.security.message.WSSecSignatureBase
org.apache.ws.security.message.WSSecDerivedKeyBase
org.apache.ws.security.message.WSSecDKSign
public class WSSecDKSign
Builder to sign with derived keys
| Field Summary |
|---|
| Fields inherited from class org.apache.ws.security.message.WSSecDerivedKeyBase |
|---|
clientLabel, derivedKeyBytes, derivedKeyLength, dkt, dktId, document, envelope, ephemeralKey, serviceLabel, strElem, tokenIdDirectId, tokenIdentifier |
| Fields inherited from class org.apache.ws.security.message.WSSecBase |
|---|
callbackLookup, doDebug, keyIdentifierType, parts, password, user |
| Constructor Summary | |
|---|---|
WSSecDKSign()
|
|
WSSecDKSign(WSSConfig config)
|
|
| Method Summary | |
|---|---|
java.util.List<javax.xml.crypto.dsig.Reference> |
addReferencesToSign(java.util.List<WSEncryptionPart> references,
WSSecHeader secHeader)
This method adds references to the Signature. |
org.w3c.dom.Document |
build(org.w3c.dom.Document doc,
WSSecHeader secHeader)
|
void |
computeSignature(java.util.List<javax.xml.crypto.dsig.Reference> referenceList)
Compute the Signature over the references. |
void |
computeSignature(java.util.List<javax.xml.crypto.dsig.Reference> referenceList,
boolean prepend,
org.w3c.dom.Element siblingElement)
Compute the Signature over the references. |
protected int |
getDerivedKeyLength()
The derived key will change depending on the sig/encr algorithm. |
java.lang.String |
getDigestAlgorithm()
|
java.lang.String |
getSigCanonicalization()
Get the canonicalization method. |
java.lang.String |
getSignatureAlgorithm()
|
org.w3c.dom.Element |
getSignatureElement()
Returns the SignatureElement. |
java.lang.String |
getSignatureId()
Returns the the value of wsu:Id attribute of the Signature element. |
byte[] |
getSignatureValue()
|
void |
prepare(org.w3c.dom.Document doc,
WSSecHeader secHeader)
|
void |
setDigestAlgorithm(java.lang.String algorithm)
Set the digest algorithm to use. |
void |
setSigCanonicalization(java.lang.String algo)
Set the canonicalization method to use. |
void |
setSignatureAlgorithm(java.lang.String algorithm)
Set the signature algorithm to use. |
| Methods inherited from class org.apache.ws.security.message.WSSecDerivedKeyBase |
|---|
appendDKElementToHeader, getdktElement, getId, getTokenIdentifier, prepare, prependDKElementToHeader, setClientLabel, setCustomValueType, setDerivedKeyLength, setExternalKey, setExternalKey, setServiceLabel, setTokenIdDirectId, setWscVersion |
| Methods inherited from class org.apache.ws.security.message.WSSecSignatureBase |
|---|
addReferencesToSign, createSTRParameter, getInclusivePrefixes, getInclusivePrefixes |
| Methods inherited from class org.apache.ws.security.message.WSSecBase |
|---|
getKeyIdentifierType, getWsConfig, setBodyID, setCallbackLookup, setKeyIdentifierType, setParts, setUserInfo, setWsConfig, setWsuId |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public WSSecDKSign()
public WSSecDKSign(WSSConfig config)
| Method Detail |
|---|
public org.w3c.dom.Document build(org.w3c.dom.Document doc,
WSSecHeader secHeader)
throws WSSecurityException,
ConversationException
WSSecurityException
ConversationException
public void prepare(org.w3c.dom.Document doc,
WSSecHeader secHeader)
throws WSSecurityException,
ConversationException
WSSecurityException
ConversationExceptionpublic org.w3c.dom.Element getSignatureElement()
prepare().
public java.util.List<javax.xml.crypto.dsig.Reference> addReferencesToSign(java.util.List<WSEncryptionPart> references,
WSSecHeader secHeader)
throws WSSecurityException
references - The list of references to signsecHeader - The Security Header
WSSecurityException
public void computeSignature(java.util.List<javax.xml.crypto.dsig.Reference> referenceList)
throws WSSecurityException
addReferencesToSign().
WSSecurityException
public void computeSignature(java.util.List<javax.xml.crypto.dsig.Reference> referenceList,
boolean prepend,
org.w3c.dom.Element siblingElement)
throws WSSecurityException
addReferencesToSign().
WSSecurityException
protected int getDerivedKeyLength()
throws WSSecurityException
WSSecDerivedKeyBase
getDerivedKeyLength in class WSSecDerivedKeyBaseWSSecurityExceptionWSSecDerivedKeyBase.getDerivedKeyLength()public void setSignatureAlgorithm(java.lang.String algorithm)
algorithm - the signature algorithm to use.public java.lang.String getSignatureAlgorithm()
public java.lang.String getSignatureId()
public void setDigestAlgorithm(java.lang.String algorithm)
algorithm - the digest algorithm to use.public java.lang.String getDigestAlgorithm()
public byte[] getSignatureValue()
public void setSigCanonicalization(java.lang.String algo)
algo - Is the name of the signature algorithmWSConstants.C14N_OMIT_COMMENTS,
WSConstants.C14N_WITH_COMMENTS,
WSConstants.C14N_EXCL_OMIT_COMMENTS,
WSConstants.C14N_EXCL_WITH_COMMENTSpublic java.lang.String getSigCanonicalization()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||