JavaTM Platform
Standard Ed. 6

javax.xml.crypto.dsig
インタフェース DigestMethod

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

public interface DigestMethod
extends XMLStructure, AlgorithmMethod

W3C Recommendation for XML-Signature Syntax and Processing」で定義されている XML DigestMethod 要素の表現。XML スキーマ定義は、次のように定義されます。  

   <element name="DigestMethod" type="ds:DigestMethodType"/>
     <complexType name="DigestMethodType" mixed="true">
       <sequence>
         <any namespace="##any" minOccurs="0" maxOccurs="unbounded"/>
           <!-- (0,unbounded) elements from (1,1) namespace -->
       </sequence>
       <attribute name="Algorithm" type="anyURI" use="required"/>
     </complexType>
 
DigestMethod インスタンスは、XMLSignatureFactory クラスの newDigestMethod メソッドを呼び出すことで作成されます。

導入されたバージョン:
1.6
関連項目:
XMLSignatureFactory.newDigestMethod(String, DigestMethodParameterSpec)

フィールドの概要
static String RIPEMD160
          RIPEMD-160 ダイジェストメソッドアルゴリズム URI。
static String SHA1
          SHA1 ダイジェストメソッドアルゴリズム URI。
static String SHA256
          SHA256 ダイジェストメソッドアルゴリズム URI。
static String SHA512
          SHA512 ダイジェストメソッドアルゴリズム URI。
 
メソッドの概要
 AlgorithmParameterSpec getParameterSpec()
          この DigestMethod に関連付けられた、アルゴリズム固有の入力パラメータを返します。
 
インタフェース javax.xml.crypto.XMLStructure から継承されたメソッド
isFeatureSupported
 
インタフェース javax.xml.crypto.AlgorithmMethod から継承されたメソッド
getAlgorithm
 

フィールドの詳細

SHA1

static final String SHA1
SHA1 ダイジェストメソッドアルゴリズム URI。

関連項目:
定数フィールド値

SHA256

static final String SHA256
SHA256 ダイジェストメソッドアルゴリズム URI。

関連項目:
定数フィールド値

SHA512

static final String SHA512
SHA512 ダイジェストメソッドアルゴリズム URI。

関連項目:
定数フィールド値

RIPEMD160

static final String RIPEMD160
RIPEMD-160 ダイジェストメソッドアルゴリズム URI。

関連項目:
定数フィールド値
メソッドの詳細

getParameterSpec

AlgorithmParameterSpec getParameterSpec()
この DigestMethod に関連付けられた、アルゴリズム固有の入力パラメータを返します。  

返されたパラメータを DigestMethodParameterSpec オブジェクトに型キャストできます。

定義:
インタフェース AlgorithmMethod 内の getParameterSpec
戻り値:
アルゴリズム固有のパラメータ。 指定されない場合は null も可

JavaTM Platform
Standard Ed. 6

バグの報告と機能のリクエスト
さらに詳しい API リファレンスおよび開発者ドキュメントについては、Java SE 開発者用ドキュメントを参照してください。開発者向けの詳細な解説、概念の概要、用語の定義、バグの回避策、およびコード実例が含まれています。

Copyright 2006 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms. Documentation Redistribution Policy も参照してください。