public static interface XMLSignature.SignatureValue extends XMLStructure
SignatureValue
元在
W3C Recommendation for XML-Signature Syntax and Processing定义。XML架构定义的定义是:
<元名称=“signaturevalue”type=“ds:signaturevaluetype” />< complexType名称=“signaturevaluetype”> <支持> <推广基地=“base64binary”> <属性名称=“标识”类型=“可选”=“可选” < 展> < /支持>< /名称> 属性名称=“标识”类型=“可选”=“可选”> 推广基地=“base64binary”> 支持>
Modifier and Type | Method and Description |
---|---|
String |
getId()
返回该
SignatureValue 可选
Id 属性,它允许该元素的引用从别处。
|
byte[] |
getValue()
返回该
SignatureValue 签名值。
|
boolean |
validate(XMLValidateContext validateContext)
验证签名值。
|
isFeatureSupported
String getId()
SignatureValue
可选
Id
属性,它允许该元素的引用从别处。
Id
属性(可能是
null
如果不指定)
byte[] getValue()
SignatureValue
签名值。
null
如果
XMLSignature
还没有签)。该方法的每个调用返回一个新的数组的克隆,以防止随后的修改。
boolean validate(XMLValidateContext validateContext) throws XMLSignatureException
XMLSignature
的
SignedInfo
计算签名。
此方法只在调用它的第一次时验证签名。在随后的调用,它返回一个缓存的结果。
validateContext
-验证的上下文
true
如果签名验证成功;
false
否则
null
validateContext
NullPointerException
XMLSignatureException
如果发生意外的异常在验证签名
Submit a bug or feature
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
Copyright © 1993, 2014, Oracle and/or its affiliates. All rights reserved.