|
Préférences
Moteurs de recherche
|
|||||||||||||||||||||||||||||
JavaTM 2 Platform Std. Ed. v1.6.0
javax.xml.crypto.dsig
|
Nested Class Summary | |
---|---|
static interface |
XMLSignature.SignatureValue
A representation of the XML SignatureValue element as
defined in the
W3C Recommendation for XML-Signature Syntax and Processing. |
Field Summary | |
---|---|
static String |
XMLNS
The XML Namespace URI of the W3C Recommendation for XML-Signature Syntax and Processing. |
Method Summary | |
---|---|
String |
getId()
Returns the optional Id of this XMLSignature . |
KeyInfo |
getKeyInfo()
Returns the key info of this XMLSignature . |
KeySelectorResult |
getKeySelectorResult()
Returns the result of the KeySelector , if specified, after
this XMLSignature has been signed or validated. |
List |
getObjects()
Returns an unmodifiable
list of XMLObject s contained in this XMLSignature . |
XMLSignature.SignatureValue |
getSignatureValue()
Returns the signature value of this XMLSignature . |
SignedInfo |
getSignedInfo()
Returns the signed info of this XMLSignature . |
void |
sign(XMLSignContext signContext)
Signs this XMLSignature . |
boolean |
validate(XMLValidateContext validateContext)
Validates the signature according to the core validation processing rules. |
Methods inherited from interface javax.xml.crypto.XMLStructure |
---|
isFeatureSupported |
Field Detail |
---|
static final String XMLNS
Method Detail |
---|
boolean validate(XMLValidateContext validateContext) throws XMLSignatureException
XMLSignature
using the
location information specified in the context.
This method only validates the signature the first time it is invoked. On subsequent invocations, it returns a cached result.
validateContext
- the validating context
true
if the signature passed core validation,
otherwise false
ClassCastException
- if the type of validateContext
is not compatible with this XMLSignature
NullPointerException
- if validateContext
is
null
XMLSignatureException
- if an unexpected error occurs during
validation that prevented the validation operation from completingKeyInfo getKeyInfo()
XMLSignature
.
null
if not specified)SignedInfo getSignedInfo()
XMLSignature
.
null
)List getObjects()
unmodifiable
list
of XMLObject
s contained in this XMLSignature
.
XMLObject
s (may be empty
but never null
)String getId()
XMLSignature
.
null
if not specified)XMLSignature.SignatureValue getSignatureValue()
XMLSignature
.
void sign(XMLSignContext signContext) throws MarshalException, XMLSignatureException
XMLSignature
.
If this method throws an exception, this XMLSignature
and
the signContext
parameter will be left in the state that
it was in prior to the invocation.
signContext
- the signing context
ClassCastException
- if the type of signContext
is
not compatible with this XMLSignature
NullPointerException
- if signContext
is
null
MarshalException
- if an exception occurs while marshalling
XMLSignatureException
- if an unexpected exception occurs while
generating the signatureKeySelectorResult getKeySelectorResult()
KeySelector
, if specified, after
this XMLSignature
has been signed or validated.
null
if a key
selector has not been specified or this XMLSignature
has not been signed or validated