public static interface XMLSignature.SignatureValue extends XMLStructure
SignatureValue元素的表示 。
XML模式定义定义为:
<element name="SignatureValue" type="ds:SignatureValueType"/>
<complexType name="SignatureValueType">
<simpleContent>
<extension base="base64Binary">
<attribute name="Id" type="ID" use="optional"/>
</extension>
</simpleContent>
</complexType>
| Modifier and Type | Method and Description |
|---|---|
String |
getId()
返回此
SignatureValue的可选
Id属性,该
SignatureValue允许从其他地方引用此元素。
|
byte[] |
getValue()
返回此签名值
SignatureValue 。
|
boolean |
validate(XMLValidateContext validateContext)
验证签名值。
|
isFeatureSupportedString getId()
SignatureValue的可选
Id属性,该
SignatureValue允许从其他地方引用此元素。
Id属性(可以是
null如果未指定)
byte[] getValue()
SignatureValue 。
null如果XMLSignature还没有签名)。
此方法的每次调用将返回数组的新克隆以防止后续修改。
boolean validate(XMLValidateContext validateContext) throws XMLSignatureException
SignedInfo所述的XMLSignature 。
该方法仅在第一次调用时验证签名。 在随后的调用中,它返回缓存的结果。
validateContext - 验证上下文
true如果签名验证成功;
false否则
NullPointerException - 如果
validateContext是
null
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.