インタフェース
java.security.spec.AlgorithmParameterSpecの使用
| パッケージ | 説明 |
|---|---|
| java.security |
セキュリティ・フレームワークのクラスとインタフェースを提供します。
|
| java.security.interfaces |
RSA Laboratory Technical Note PKCS#1で定義されているRSA (Rivest, Shamir and Adleman AsymmetricCipher algorithm)キーと、NISTのFIPS-186で定義されているDSA (Digital Signature Algorithm)キーを生成するためのインタフェースを提供します。
|
| java.security.spec |
キー仕様およびアルゴリズム・パラメータ仕様のクラスおよびインタフェースを提供します。
|
| javax.crypto |
暗号化操作のクラスとインタフェースを提供します。
|
| javax.crypto.spec |
キー仕様およびアルゴリズム・パラメータ仕様のクラスおよびインタフェースを提供します。
|
| javax.xml.crypto |
XML暗号化用の共通クラスです。
|
| javax.xml.crypto.dsig |
XMLデジタル署名の生成および検証用のクラスです。
|
| javax.xml.crypto.dsig.spec |
XMLデジタル署名用のパラメータ・クラス。
|
-
java.securityでのAlgorithmParameterSpecの使用
AlgorithmParameterSpec型の型パラメータを持つjava.securityのメソッド 修飾子と型 メソッド 説明 protected abstract <T extends AlgorithmParameterSpec>
TAlgorithmParametersSpi. engineGetParameterSpec(クラス<T> paramSpec)このパラメータ・オブジェクトの(透明な)仕様を返します。<T extends AlgorithmParameterSpec>
TAlgorithmParameters. getParameterSpec(クラス<T> paramSpec)パラメータ・オブジェクトの透明な仕様を返します。AlgorithmParameterSpecを返すjava.securityのメソッド 修飾子と型 メソッド 説明 AlgorithmParameterSpecKeyStore.PasswordProtection. getProtectionParameters()保護アルゴリズムに対して指定されたパラメータを取得します。AlgorithmParameterSpec型のパラメータを持つjava.securityのメソッド 修飾子と型 メソッド 説明 protected abstract voidAlgorithmParameterGeneratorSpi. engineInit(AlgorithmParameterSpec genParamSpec, SecureRandom random)アルゴリズム固有型のパラメータ生成値のセットで、パラメータ・ジェネレータを初期化します。protected abstract voidAlgorithmParametersSpi. engineInit(AlgorithmParameterSpec paramSpec)paramSpecに指定されたパラメータで、このパラメータ・オブジェクトを初期化します。protected voidSignatureSpi. engineSetParameter(AlgorithmParameterSpec params)このメソッドはプロバイダによってオーバーライドされ、署名エンジンを指定したパラメータ・セットで初期化します。voidAlgorithmParameterGenerator. init(AlgorithmParameterSpec genParamSpec)アルゴリズム固有型のパラメータ生成値のセットで、パラメータ・ジェネレータを初期化します。voidAlgorithmParameterGenerator. init(AlgorithmParameterSpec genParamSpec, SecureRandom random)アルゴリズム固有型のパラメータ生成値のセットで、パラメータ・ジェネレータを初期化します。voidAlgorithmParameters. init(AlgorithmParameterSpec paramSpec)paramSpecに指定されたパラメータで、このパラメータ・オブジェクトを初期化します。voidKeyPairGenerator. initialize(AlgorithmParameterSpec params)指定されたパラメータのセットと、乱数発生の元として、もっとも高い優先順位でインストールされているプロバイダのSecureRandomの実装を使用して、キー・ペア・ジェネレータを初期化します。voidKeyPairGenerator. initialize(AlgorithmParameterSpec params, SecureRandom random)指定されたパラメータ・セットと乱数発生の元を使ってキー・ペア・ジェネレータを初期化します。voidKeyPairGeneratorSpi. initialize(AlgorithmParameterSpec params, SecureRandom random)指定されたパラメータ・セットとユーザーが提供する乱数発生の元を使って、キー・ペア・ジェネレータを初期化します。voidSignature. setParameter(AlgorithmParameterSpec params)署名エンジンを、指定されたパラメータ・セットを使って初期化します。AlgorithmParameterSpec型のパラメータを持つjava.securityのコンストラクタ コンストラクタ 説明 PasswordProtection(char[] password, String protectionAlgorithm, AlgorithmParameterSpec protectionParameters)パスワード・パラメータを作成し、キーストア・エントリを暗号化するときに使用する保護アルゴリズムと関連パラメータを指定します。 -
java.security.interfacesでのAlgorithmParameterSpecの使用
AlgorithmParameterSpecを戻すjava.security.interfacesのメソッド 修飾子と型 メソッド 説明 default AlgorithmParameterSpecRSAKey. getParams()このキーに関連付けられたパラメータを返します。AlgorithmParameterSpecXECKey. getParams()キーに関連付けられたアルゴリズム・パラメータを返します。 -
java.security.specでのAlgorithmParameterSpecの使用
AlgorithmParameterSpecを実装しているjava.security.specのクラス 修飾子と型 クラス 説明 classDSAGenParameterSpecこの不変クラスは、FIPS 186-3 Digital Signature Standard (DSS)で指定されているように、DSAパラメータの生成に使用される一連のパラメータを指定します。classDSAParameterSpecDSAアルゴリズムで使用されるパラメータのセットを指定します。classECGenParameterSpecこの不変なクラスは、楕円曲線(Elliptic Curve: EC)ドメイン・パラメータの生成時に使用される一連のドメイン・パラメータを指定します。classECParameterSpecこの不変なクラスは、楕円曲線暗号化(Elliptic Curve Cryptography: ECC)で使用される一連のドメイン・パラメータを指定します。classMGF1ParameterSpecこのクラスは、PKCS#1 v2.2標準で定義されているOAEPパディングおよびRSASSA-PSSシグネチャ・スキームのマスク生成関数MGF1で使用されるパラメータのセットを指定します。classNamedParameterSpecこのクラスは、標準名によって決定されるアルゴリズム・パラメータを指定するために使用されます。classPSSParameterSpecこのクラスは、PKCS#1 v2.2標準に定義されているRSASSA-PSSシグネチャ・スキームのパラメータ仕様を指定します。classRSAKeyGenParameterSpecRSAキー・ペアを生成するために使用されるパラメータのセットを指定します。AlgorithmParameterSpecを返すjava.security.specのメソッド 修飾子と型 メソッド 説明 AlgorithmParameterSpecRSAKeyGenParameterSpec. getKeyParams()キーに関連付けるパラメータを戻します。AlgorithmParameterSpecPSSParameterSpec. getMGFParameters()マスク生成関数のパラメータを返します。AlgorithmParameterSpecRSAPrivateKeySpec. getParams()このキーに関連付けられたパラメータを返します。値が存在しない場合はNullでもかまいません。AlgorithmParameterSpecRSAPublicKeySpec. getParams()このキーに関連付けられたパラメータを返します。値が存在しない場合はNullでもかまいません。AlgorithmParameterSpecXECPrivateKeySpec. getParams()曲線とその他の設定を定義するアルゴリズム・パラメータを取得します。AlgorithmParameterSpecXECPublicKeySpec. getParams()曲線とその他の設定を定義するアルゴリズム・パラメータを取得します。AlgorithmParameterSpec型のパラメータを持つjava.security.specのコンストラクタ コンストラクタ 説明 PSSParameterSpec(String mdName, String mgfName, AlgorithmParameterSpec mgfSpec, int saltLen, int trailerField)指定されたメッセージ・ダイジェスト、マスク生成関数、マスク生成関数用パラメータ、ソルト長、トレーラ・フィールドの各値を使用して、PKCS#1標準で定義されたPSSParameterSpecを新規作成します。RSAKeyGenParameterSpec(int keysize, BigInteger publicExponent, AlgorithmParameterSpec keyParams)指定されたキー・サイズ、公開された値、およびキー・パラメータから新しいRSAKeyGenParameterSpecオブジェクトを構築します。RSAMultiPrimePrivateCrtKeySpec(BigInteger modulus, BigInteger publicExponent, BigInteger privateExponent, BigInteger primeP, BigInteger primeQ, BigInteger primeExponentP, BigInteger primeExponentQ, BigInteger crtCoefficient, RSAOtherPrimeInfo[] otherPrimeInfo, AlgorithmParameterSpec keyParams)その他のキー・パラメータを含む新しいRSAMultiPrimePrivateCrtKeySpecを作成します。RSAPrivateCrtKeySpec(BigInteger modulus, BigInteger publicExponent, BigInteger privateExponent, BigInteger primeP, BigInteger primeQ, BigInteger primeExponentP, BigInteger primeExponentQ, BigInteger crtCoefficient, AlgorithmParameterSpec keyParams)その他のキー・パラメータを含む新しいRSAPrivateCrtKeySpecを作成します。RSAPrivateKeySpec(BigInteger modulus, BigInteger privateExponent, AlgorithmParameterSpec params)追加のキー・パラメータを使用して、新しいRSAPrivateKeySpecを作成します。RSAPublicKeySpec(BigInteger modulus, BigInteger publicExponent, AlgorithmParameterSpec params)追加のキー・パラメータを使用して、新しいRSAPublicKeySpecを作成します。XECPrivateKeySpec(AlgorithmParameterSpec params, byte[] scalar)指定されたパラメータおよびエンコードされたスカラー値を使用して、秘密鍵の仕様を作成します。XECPublicKeySpec(AlgorithmParameterSpec params, BigInteger u)指定されたパラメータおよびu座標を使用して、公開鍵仕様を作成します。 -
javax.cryptoでのAlgorithmParameterSpecの使用
AlgorithmParameterSpecを返すjavax.cryptoのメソッド 修飾子と型 メソッド 説明 static AlgorithmParameterSpecCipher. getMaxAllowedParameterSpec(String transformation)管轄ポリシー・ファイルに従って、最大の暗号パラメータ値を含むAlgorithmParameterSpecオブジェクトを返します。AlgorithmParameterSpec型のパラメータを持つjavax.cryptoのメソッド 修飾子と型 メソッド 説明 protected abstract voidCipherSpi. engineInit(int opmode, Key key, AlgorithmParameterSpec params, SecureRandom random)キー、アルゴリズム・パラメータのセット、および乱数発生の元を使用してこの暗号を初期化します。protected abstract voidExemptionMechanismSpi. engineInit(Key key, AlgorithmParameterSpec params)キーとアルゴリズム・パラメータのセットを使用してこの除外メカニズムを初期化します。protected abstract voidKeyAgreementSpi. engineInit(Key key, AlgorithmParameterSpec params, SecureRandom random)指定されたキー、アルゴリズム・パラメータのセット、および乱数発生の元を使用してこのキー合意を初期化します。protected abstract voidKeyGeneratorSpi. engineInit(AlgorithmParameterSpec params, SecureRandom random)指定されたパラメータ・セットとユーザーが提供する乱数発生の元を使って、キー・ジェネレータを初期化します。protected abstract voidMacSpi. engineInit(Key key, AlgorithmParameterSpec params)指定された(秘密)キーとアルゴリズム・パラメータを使用してMACを初期化します。voidCipher. init(int opmode, Key key, AlgorithmParameterSpec params)キーとアルゴリズム・パラメータのセットを使用してこの暗号を初期化します。voidCipher. init(int opmode, Key key, AlgorithmParameterSpec params, SecureRandom random)キー、アルゴリズム・パラメータのセット、および乱数発生の元を使用してこの暗号を初期化します。voidExemptionMechanism. init(Key key, AlgorithmParameterSpec params)キーとアルゴリズム・パラメータのセットを使用してこの除外メカニズムを初期化します。voidKeyAgreement. init(Key key, AlgorithmParameterSpec params)指定されたキーとアルゴリズム・パラメータのセットを使用してこのキー合意を初期化します。voidKeyAgreement. init(Key key, AlgorithmParameterSpec params, SecureRandom random)指定されたキー、アルゴリズム・パラメータのセット、および乱数発生の元を使用してこのキー合意を初期化します。voidKeyGenerator. init(AlgorithmParameterSpec params)このキー・ジェネレータを、指定されたパラメータ・セットを使って初期化します。voidKeyGenerator. init(AlgorithmParameterSpec params, SecureRandom random)指定されたパラメータ・セットとユーザーが提供する乱数発生の元を使って、このキー・ジェネレータを初期化します。voidMac. init(Key key, AlgorithmParameterSpec params)指定されたキーとアルゴリズム・パラメータを使用してこのMacオブジェクトを初期化します。 -
javax.crypto.specでのAlgorithmParameterSpecの使用
AlgorithmParameterSpecを実装しているjavax.crypto.specのクラス 修飾子と型 クラス 説明 classChaCha20ParameterSpecこのクラスは、ChaCha20アルゴリズムで使用されるパラメータを指定します。classDHGenParameterSpecこのクラスは、Diffie-Hellmanキー合意で使用するDiffie-Hellman (システム)パラメータを生成するために使用するパラメータのセットを指定します。classDHParameterSpecこのクラスは、「PKCS#3: Diffie-Hellman Key-Agreement Standard」で指定されている、Diffie-Hellmanアルゴリズムで使用されるパラメータのセットを指定します。classGCMParameterSpecGCM (Galois/Counter Mode)モードを使用して、Cipherで必要なパラメータ・セットを指定します。classIvParameterSpecこのクラスは、初期化ベクトル (IV)を指定します。classOAEPParameterSpecこのクラスは、PKCS#1 v2.2標準に定義されているOAEPパディングで使用されるパラメータのセットを指定します。classPBEParameterSpecこのクラスは、PKCS#5標準で定義されている、パスワードベースの暗号化(PBE)で使用されるパラメータのセットを指定します。classRC2ParameterSpecこのクラスは、RC2アルゴリズムで使用されるパラメータを指定します。classRC5ParameterSpecこのクラスは、RC5アルゴリズムで使用されるパラメータを指定します。AlgorithmParameterSpecを返すjavax.crypto.specのメソッド 修飾子と型 メソッド 説明 AlgorithmParameterSpecOAEPParameterSpec. getMGFParameters()マスク生成関数のパラメータを返します。AlgorithmParameterSpecPBEParameterSpec. getParameterSpec()暗号アルゴリズム・パラメータの仕様を返します。AlgorithmParameterSpec型のパラメータを持つjavax.crypto.specのコンストラクタ コンストラクタ 説明 OAEPParameterSpec(String mdName, String mgfName, AlgorithmParameterSpec mgfSpec, PSource pSrc)指定されたメッセージ・ダイジェスト・アルゴリズムmdName、マスク生成関数アルゴリズムmgfName、マスク生成関数のパラメータmgfSpec、およびエンコーディング入力PのソースpSrcを使用して、PKCS#1標準で定義されたOAEPパディングのパラメータ・セットを構築します。PBEParameterSpec(byte[] salt, int iterationCount, AlgorithmParameterSpec paramSpec)PKCS#5標準で定義されている、パスワードベースの暗号化のパラメータ・セットを構築します。 -
javax.xml.cryptoでのAlgorithmParameterSpecの使用
AlgorithmParameterSpecを返すjavax.xml.cryptoのメソッド 修飾子と型 メソッド 説明 AlgorithmParameterSpecAlgorithmMethod. getParameterSpec()このAlgorithmMethodのアルゴリズム・パラメータを返します。 -
javax.xml.crypto.dsigでのAlgorithmParameterSpecの使用
AlgorithmParameterSpecを返すjavax.xml.crypto.dsigのメソッド 修飾子と型 メソッド 説明 AlgorithmParameterSpecCanonicalizationMethod. getParameterSpec()このCanonicalizationMethodに関連付けられた、アルゴリズム固有の入力パラメータを返します。AlgorithmParameterSpecDigestMethod. getParameterSpec()このDigestMethodに関連付けられた、アルゴリズム固有の入力パラメータを返します。AlgorithmParameterSpecSignatureMethod. getParameterSpec()このSignatureMethodのアルゴリズム固有の入力パラメータを返します。AlgorithmParameterSpecTransform. getParameterSpec()このTransformに関連付けられた、アルゴリズム固有の入力パラメータを返します。 -
javax.xml.crypto.dsig.specでのAlgorithmParameterSpecの使用
javax.xml.crypto.dsig.specでのAlgorithmParameterSpecのサブインタフェース 修飾子と型 インタフェース 説明 interfaceC14NMethodParameterSpecCanonicalizationMethodアルゴリズム用のアルゴリズム・パラメータの仕様です。interfaceDigestMethodParameterSpecDigestMethodアルゴリズム用のアルゴリズム・パラメータの仕様です。interfaceSignatureMethodParameterSpecXMLSignatureMethodアルゴリズム用のアルゴリズム・パラメータの仕様です。interfaceTransformParameterSpecTransformアルゴリズム用のアルゴリズム・パラメータの仕様です。AlgorithmParameterSpecを実装しているjavax.xml.crypto.dsig.specのクラス 修飾子と型 クラス 説明 classExcC14NParameterSpecW3C勧告のパラメータ: Exclusive XML Canonicalization (C14N)アルゴリズム。classHMACParameterSpecXML署名HMACアルゴリズム用のパラメータ。classXPathFilter2ParameterSpecW3C勧告XPath Filter 2.0変換アルゴリズム用のパラメータ。classXPathFilterParameterSpecXPath Filtering変換アルゴリズム用のパラメータ。classXSLTTransformParameterSpecXSLT変換アルゴリズム用のパラメータ。