public class WSSecDKSign extends WSSecDerivedKeyBase
clientLabel, derivedKeyBytes, derivedKeyLength, dkt, dktId, document, envelope, ephemeralKey, serviceLabel, strElem, tokenIdDirectId, tokenIdentifiercallbackLookup, doDebug, keyIdentifierType, parts, password, user| Constructor and Description |
|---|
WSSecDKSign() |
WSSecDKSign(WSSConfig config) |
| Modifier and Type | Method and Description |
|---|---|
List<Reference> |
addReferencesToSign(List<WSEncryptionPart> references,
WSSecHeader secHeader)
This method adds references to the Signature.
|
Document |
build(Document doc,
WSSecHeader secHeader) |
void |
computeSignature(List<Reference> referenceList)
Compute the Signature over the references.
|
void |
computeSignature(List<Reference> referenceList,
boolean prepend,
Element siblingElement)
Compute the Signature over the references.
|
protected int |
getDerivedKeyLength()
The derived key will change depending on the sig/encr algorithm.
|
String |
getDigestAlgorithm() |
String |
getSigCanonicalization()
Get the canonicalization method.
|
String |
getSignatureAlgorithm() |
Element |
getSignatureElement()
Returns the SignatureElement.
|
String |
getSignatureId()
Returns the the value of wsu:Id attribute of the Signature element.
|
byte[] |
getSignatureValue() |
void |
prepare(Document doc,
WSSecHeader secHeader) |
void |
setDigestAlgorithm(String algorithm)
Set the digest algorithm to use.
|
void |
setSigCanonicalization(String algo)
Set the canonicalization method to use.
|
void |
setSignatureAlgorithm(String algorithm)
Set the signature algorithm to use.
|
appendDKElementToHeader, getdktElement, getId, getTokenIdentifier, getWscVersion, prepare, prependDKElementToHeader, setClientLabel, setCustomValueType, setDerivedKeyLength, setExternalKey, setExternalKey, setServiceLabel, setTokenIdDirectId, setWscVersionaddReferencesToSign, createSTRParameter, getInclusivePrefixes, getInclusivePrefixesgetKeyIdentifierType, getWsConfig, setBodyID, setCallbackLookup, setKeyIdentifierType, setParts, setUserInfo, setWsConfig, setWsuIdpublic WSSecDKSign()
public WSSecDKSign(WSSConfig config)
public Document build(Document doc, WSSecHeader secHeader) throws WSSecurityException, ConversationException
public void prepare(Document doc, WSSecHeader secHeader) throws WSSecurityException, ConversationException
public Element getSignatureElement()
prepare().public List<Reference> addReferencesToSign(List<WSEncryptionPart> references, WSSecHeader secHeader) throws WSSecurityException
references - The list of references to signsecHeader - The Security HeaderWSSecurityExceptionpublic void computeSignature(List<Reference> referenceList) throws WSSecurityException
addReferencesToSign().WSSecurityExceptionpublic void computeSignature(List<Reference> referenceList, boolean prepend, Element siblingElement) throws WSSecurityException
addReferencesToSign().WSSecurityExceptionprotected int getDerivedKeyLength()
throws WSSecurityException
WSSecDerivedKeyBasegetDerivedKeyLength in class WSSecDerivedKeyBaseWSSecurityExceptionWSSecDerivedKeyBase.getDerivedKeyLength()public void setSignatureAlgorithm(String algorithm)
algorithm - the signature algorithm to use.public String getSignatureAlgorithm()
public String getSignatureId()
public void setDigestAlgorithm(String algorithm)
algorithm - the digest algorithm to use.public String getDigestAlgorithm()
public byte[] getSignatureValue()
public void setSigCanonicalization(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 String getSigCanonicalization()
Copyright © 2018 JBoss by Red Hat. All rights reserved.