Modifier and Type | Class and Description |
---|---|
public class |
Modifier and Type | Field and Description |
---|---|
private final String | |
private KeyInfo | |
private KeySelectorResult | |
private Element | |
private static final Logger | |
private List | |
private Document | |
private final SignedInfo | |
private Element | |
private Map | |
private final XMLSignature. | |
private boolean | |
private boolean |
Access | Constructor and Description |
---|---|
public | DOMXMLSignature(SignedInfo
the si, KeyInfo SignedInfo the ki, List<? extends XMLObject> KeyInfo , or null if not specifieda list of objs, String XMLObject s or null
if not specified. The list is copied to protect against subsequent
modification.an optional id (specify id, String null to omit)an optional id (specify signatureValueId)null to
omit)Creates a |
public | DOMXMLSignature(Element
Signature element sigElem, XMLCryptoContext context, Provider provider)Creates a |
Modifier and Type | Method and Description |
---|---|
private void | |
public boolean | equals(Object
the reference object with which to compare. o)Overrides java. |
public String | getId()
Implements javax. XMLSignature .
|
public KeyInfo | getKeyInfo()
Implements javax. XMLSignature .
|
public KeySelectorResult | getKeySelectorResult()
Implements javax. KeySelector , if specified, after
this XMLSignature has been signed or validated.
|
public List | getObjects()
Implements javax. unmodifiable
list of XMLObject s contained in this XMLSignature .
|
public XMLSignature. | getSignatureValue()
Implements javax. XMLSignature .
|
public SignedInfo | getSignedInfo()
Implements javax. XMLSignature .
|
public int | |
public void | marshal(Node parent, String dsPrefix, DOMCryptoContext context)
Implements abstract org. |
public void | |
public void | sign(XMLSignContext
the signing context signContext)Implements javax. XMLSignature .
|
public boolean | validate(XMLValidateContext
the validating context vc)Implements javax. |
id | back to summary |
---|---|
private final String id |
ki | back to summary |
---|---|
private KeyInfo ki |
ksr | back to summary |
---|---|
private KeySelectorResult ksr |
localSigElem | back to summary |
---|---|
private Element localSigElem |
LOG | back to summary |
---|---|
private static final Logger LOG |
objects | back to summary |
---|---|
private List<XMLObject> objects |
ownerDoc | back to summary |
---|---|
private Document ownerDoc |
si | back to summary |
---|---|
private final SignedInfo si |
sigElem | back to summary |
---|---|
private Element sigElem |
signatureIdMap | back to summary |
---|---|
private Map<String, XMLStructure> signatureIdMap |
sv | back to summary |
---|---|
private final XMLSignature. |
validated | back to summary |
---|---|
private boolean validated |
validationStatus | back to summary |
---|---|
private boolean validationStatus |
DOMXMLSignature | back to summary |
---|---|
public DOMXMLSignature(SignedInfo si, KeyInfo ki, List<? extends XMLObject> objs, String id, String signatureValueId) Creates a
|
DOMXMLSignature | back to summary |
---|---|
public DOMXMLSignature(Element sigElem, XMLCryptoContext context, Provider provider) throws MarshalException Creates a
|
digestReference | back to summary |
---|---|
private void digestReference(DOMReference ref, XMLSignContext signContext) throws XMLSignatureException |
equals | back to summary |
---|---|
public boolean equals(Object o) Overrides java. Doc from java. Indicates whether some other object is "equal to" this one.
The
An equivalence relation partitions the elements it operates on into equivalence classes; all the members of an equivalence class are equal to each other. Members of an equivalence class are substitutable for each other, at least for some purposes. |
getId | back to summary |
---|---|
public String getId() Implements javax. Doc from javax. Returns the optional Id of this |
getKeyInfo | back to summary |
---|---|
public KeyInfo getKeyInfo() Implements javax. Doc from javax. Returns the key info of this |
getKeySelectorResult | back to summary |
---|---|
public KeySelectorResult getKeySelectorResult() Implements javax. Doc from javax. Returns the result of the
|
getObjects | back to summary |
---|---|
public List Implements javax. Doc from javax. Returns an |
getSignatureValue | back to summary |
---|---|
public XMLSignature. Implements javax. Doc from javax. Returns the signature value of this
|
getSignedInfo | back to summary |
---|---|
public SignedInfo getSignedInfo() Implements javax. Doc from javax. Returns the signed info of this
|
hashCode | back to summary |
---|---|
public int hashCode() Overrides java. Doc from java. Returns a hash code value for this object. This method is
supported for the benefit of hash tables such as those provided by
The general contract of
|
marshal | back to summary |
---|---|
public void marshal(Node parent, String dsPrefix, DOMCryptoContext context) throws MarshalException Implements abstract org.
|
marshal | back to summary |
---|---|
public void marshal(Node parent, Node nextSibling, String dsPrefix, DOMCryptoContext context) throws MarshalException |
sign | back to summary |
---|---|
public void sign(XMLSignContext signContext) throws MarshalException, XMLSignatureException Implements javax. Doc from javax. Signs this If this method throws an exception, this
|
validate | back to summary |
---|---|
public boolean validate(XMLValidateContext vc) throws XMLSignatureException Implements javax. Doc from javax. Validates the signature according to the
core validation processing rules. This method validates the
signature using the existing state, it does not unmarshal and
reinitialize the contents of the This method only validates the signature the first time it is invoked. On subsequent invocations, it returns a cached result.
|
Modifier and Type | Field and Description |
---|---|
private String | |
private Element | |
private boolean | |
private boolean | |
private byte[] | |
private String |
Access | Constructor and Description |
---|---|
pack-priv | |
pack-priv |
Modifier and Type | Method and Description |
---|---|
public boolean | equals(Object
the reference object with which to compare. o)Overrides java. |
public String | |
public String | getId()
Implements javax. Id attribute of this
SignatureValue , which permits this element to be
referenced from elsewhere.
|
public byte[] | getValue()
Implements javax. SignatureValue .
|
public int | |
public void | marshal(Node parent, String dsPrefix, DOMCryptoContext context)
Implements abstract org. |
pack-priv void | |
public boolean | validate(XMLValidateContext
the validating context validateContext)Implements javax. |
id | back to summary |
---|---|
private String id |
sigValueElem | back to summary |
---|---|
private Element sigValueElem |
validated | back to summary |
---|---|
private boolean validated |
validationStatus | back to summary |
---|---|
private boolean validationStatus |
value | back to summary |
---|---|
private byte[] value |
valueBase64 | back to summary |
---|---|
private String valueBase64 |
DOMSignatureValue | back to summary |
---|---|
pack-priv DOMSignatureValue(String id) |
DOMSignatureValue | back to summary |
---|---|
pack-priv DOMSignatureValue(Element sigValueElem) throws MarshalException |
equals | back to summary |
---|---|
public boolean equals(Object o) Overrides java. Doc from java. Indicates whether some other object is "equal to" this one.
The
An equivalence relation partitions the elements it operates on into equivalence classes; all the members of an equivalence class are equal to each other. Members of an equivalence class are substitutable for each other, at least for some purposes. |
getEncodedValue | back to summary |
---|---|
public String getEncodedValue() |
getId | back to summary |
---|---|
public String getId() Implements javax. Doc from javax. Returns the optional |
getValue | back to summary |
---|---|
public byte[] getValue() Implements javax. Doc from javax. Returns the signature value of this
|
hashCode | back to summary |
---|---|
public int hashCode() Overrides java. Doc from java. Returns a hash code value for this object. This method is
supported for the benefit of hash tables such as those provided by
The general contract of
|
marshal | back to summary |
---|---|
public void marshal(Node parent, String dsPrefix, DOMCryptoContext context) throws MarshalException Implements abstract org.
|
setValue | back to summary |
---|---|
pack-priv void setValue(byte[] value) |
validate | back to summary |
---|---|
public boolean validate(XMLValidateContext validateContext) throws XMLSignatureException Implements javax. Doc from javax. Validates the signature value. This method performs a
cryptographic validation of the signature calculated over the
This method only validates the signature the first time it is invoked. On subsequent invocations, it returns a cached result.
|