モジュール java.xml.crypto
パッケージ javax.xml.crypto.dsig

インタフェースに関する参考資料

すべてのスーパー・インタフェース:
URIReference, XMLStructure

public interface Reference extends URIReference, XMLStructure
W3C Recommendation for XML-Signature Syntax and Processing」で定義されているReference要素の表現。 XMLスキーマは次のように定義されます:
 <element name="Reference" type="ds:ReferenceType"/>
 <complexType name="ReferenceType">
   <sequence>
     <element ref="ds:Transforms" minOccurs="0"/>
     <element ref="ds:DigestMethod"/>
     <element ref="ds:DigestValue"/>
   </sequence>
   <attribute name="Id" type="ID" use="optional"/>
   <attribute name="URI" type="anyURI" use="optional"/>
   <attribute name="Type" type="anyURI" use="optional"/>
 </complexType>

 <element name="DigestValue" type="ds:DigestValueType"/>
 <simpleType name="DigestValueType">
   <restriction base="base64Binary"/>
 </simpleType>
 

Referenceインスタンスは、XMLSignatureFactoryクラスのnewReferenceメソッドの1つを呼び出すことで作成できます。たとえば:

   XMLSignatureFactory factory = XMLSignatureFactory.getInstance("DOM");
   Reference ref = factory.newReference
     ("http://www.ietf.org/rfc/rfc3275.txt",
      factory.newDigestMethod(DigestMethod.SHA1, null));
 

導入されたバージョン:
1.6
関連項目: