|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.opensaml.xml.AbstractXMLObject org.opensaml.xml.signature.impl.SignatureImpl
public class SignatureImpl
XMLObject representing an enveloped or detached XML Digital Signature, version 20020212, Signature element.
Field Summary | |
---|---|
private String |
canonicalizationAlgorithm
Canonicalization algorithm used in signature. |
private List<ContentReference> |
contentReferences
References to content to be signed. |
private Integer |
hmacOutputLength
Optional HMAC output length parameter to the signature algorithm. |
private KeyInfo |
keyInfo
Public key information to embed in the signature. |
private String |
signatureAlgorithm
Algorithm used to generate the signature. |
private Credential |
signingCredential
Key used to sign the signature. |
private org.apache.xml.security.signature.XMLSignature |
xmlSignature
Constructed Apache XML Security signature object. |
Fields inherited from interface org.opensaml.xml.signature.Signature |
---|
DEFAULT_ELEMENT_LOCAL_NAME, DEFAULT_ELEMENT_NAME, TYPE_LOCAL_NAME, TYPE_NAME |
Constructor Summary | |
---|---|
protected |
SignatureImpl(String namespaceURI,
String elementLocalName,
String namespacePrefix)
Constructor. |
Method Summary | |
---|---|
String |
getCanonicalizationAlgorithm()
Gets the canonicalization algorithm used to create the signature content. |
List<ContentReference> |
getContentReferences()
Gets the list of signature content references. |
Integer |
getHMACOutputLength()
Gets the HMAC output length value, optionally used when signing with an HMAC signature algorithm. |
KeyInfo |
getKeyInfo()
Gets the key info added to this signature. |
List<XMLObject> |
getOrderedChildren()
Gets an unmodifiable list of child elements in the order that they will appear in the DOM. |
String |
getSignatureAlgorithm()
Gets the algorithm used to compute the signature. |
Credential |
getSigningCredential()
Gets the signature signing credential. |
org.apache.xml.security.signature.XMLSignature |
getXMLSignature()
Get the Apache XML Security signature instance held by this object. |
void |
releaseDOM()
Releases the DOM representation of this XMLObject, if there is one. |
void |
setCanonicalizationAlgorithm(String newAlgorithm)
Sets the canonicalization algorithm used to create the signature content. |
void |
setHMACOutputLength(Integer length)
Sets the HMAC output length value, optionally used when signing with an HMAC signature algorithm. |
void |
setKeyInfo(KeyInfo newKeyInfo)
Sets the key info added to this signature. |
void |
setSignatureAlgorithm(String newAlgorithm)
Sets the algorithm used to compute the signature. |
void |
setSigningCredential(Credential newCredential)
Sets the signature signing credential. |
void |
setXMLSignature(org.apache.xml.security.signature.XMLSignature signature)
Set the Apache XML Security signature instance held by this object. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.opensaml.xml.XMLObject |
---|
addNamespace, detach, getDOM, getElementQName, getIDIndex, getNamespaceManager, getNamespaces, getNoNamespaceSchemaLocation, getParent, getSchemaLocation, getSchemaType, hasChildren, hasParent, isNil, isNilXSBoolean, releaseChildrenDOM, releaseParentDOM, removeNamespace, resolveID, resolveIDFromRoot, setDOM, setNil, setNil, setNoNamespaceSchemaLocation, setParent, setSchemaLocation |
Field Detail |
---|
private String canonicalizationAlgorithm
private String signatureAlgorithm
private Integer hmacOutputLength
private Credential signingCredential
private KeyInfo keyInfo
private List<ContentReference> contentReferences
private org.apache.xml.security.signature.XMLSignature xmlSignature
Constructor Detail |
---|
protected SignatureImpl(String namespaceURI, String elementLocalName, String namespacePrefix)
namespaceURI
- the namespace the element is inelementLocalName
- the local name of the XML element this Object representsnamespacePrefix
- the prefix for the given namespaceMethod Detail |
---|
public String getCanonicalizationAlgorithm()
getCanonicalizationAlgorithm
in interface Signature
public void setCanonicalizationAlgorithm(String newAlgorithm)
setCanonicalizationAlgorithm
in interface Signature
newAlgorithm
- the canonicalization algorithm used to create the signature contentpublic String getSignatureAlgorithm()
getSignatureAlgorithm
in interface Signature
public void setSignatureAlgorithm(String newAlgorithm)
setSignatureAlgorithm
in interface Signature
newAlgorithm
- the algorithm used to compute the signaturepublic Integer getHMACOutputLength()
getHMACOutputLength
in interface Signature
public void setHMACOutputLength(Integer length)
setHMACOutputLength
in interface Signature
length
- the new HMACOutputLength valuepublic Credential getSigningCredential()
getSigningCredential
in interface Signature
public void setSigningCredential(Credential newCredential)
setSigningCredential
in interface Signature
newCredential
- the signature signing credentialpublic KeyInfo getKeyInfo()
getKeyInfo
in interface Signature
public void setKeyInfo(KeyInfo newKeyInfo)
setKeyInfo
in interface Signature
newKeyInfo
- the key info added to this signaturepublic List<ContentReference> getContentReferences()
getContentReferences
in interface Signature
public List<XMLObject> getOrderedChildren()
getOrderedChildren
in interface XMLObject
public void releaseDOM()
releaseDOM
in interface XMLObject
releaseDOM
in class AbstractXMLObject
public org.apache.xml.security.signature.XMLSignature getXMLSignature()
public void setXMLSignature(org.apache.xml.security.signature.XMLSignature signature)
signature
- an Apache XML Security signature object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |