接口的使用
java.security.spec.AlgorithmParameterSpec
使用 AlgorithmParameterSpec 的包
包
描述
为安全框架提供类和接口。
提供用于生成 RSA(Rivest、Shamir 和 Adleman AsymmetricCipher 算法)密钥的接口,如 RSA 实验室技术说明 PKCS#1 中所定义,以及 DSA(数字签名算法)密钥,如 NIST 的 FIPS-186 中所定义。
提供关键规范和算法参数规范的类和接口。
提供用于加密操作的类和接口。
提供关键规范和算法参数规范的类和接口。
XML 加密的通用类。
用于生成和验证 XML 数字签名的类。
XML 数字签名的参数类。
-
AlgorithmParameterSpec 在 java.security 中的用法
java.security 中的方法,类型参数类型为 AlgorithmParameterSpec修饰符和类型方法描述protected abstract <T extends AlgorithmParameterSpec>
TAlgorithmParametersSpi.engineGetParameterSpec(Class<T> paramSpec) 返回此参数对象的(透明)规范。final <T extends AlgorithmParameterSpec>
TAlgorithmParameters.getParameterSpec(Class<T> paramSpec) 返回此参数对象的(透明)规范。java.security 中返回 AlgorithmParameterSpec 的方法java.security 中的方法,参数类型为 AlgorithmParameterSpec修饰符和类型方法描述protected abstract voidAlgorithmParameterGeneratorSpi.engineInit(AlgorithmParameterSpec genParamSpec, SecureRandom random) 使用一组特定于算法的参数生成值初始化此参数生成器。protected abstract voidAlgorithmParametersSpi.engineInit(AlgorithmParameterSpec paramSpec) 使用paramSpec中指定的参数初始化此参数对象。protected voidSignatureSpi.engineSetParameter(AlgorithmParameterSpec params) 使用指定的参数值初始化此Signature对象。final voidAlgorithmParameterGenerator.init(AlgorithmParameterSpec genParamSpec) 使用一组特定于算法的参数生成值初始化此参数生成器。final voidAlgorithmParameterGenerator.init(AlgorithmParameterSpec genParamSpec, SecureRandom random) 使用一组特定于算法的参数生成值初始化此参数生成器。final voidAlgorithmParameters.init(AlgorithmParameterSpec paramSpec) 使用paramSpec中指定的参数初始化此参数对象。voidKeyPairGenerator.initialize(AlgorithmParameterSpec params) 使用指定的参数集和最高优先级安装提供程序的SecureRandom实现作为随机源来初始化密钥对生成器。voidKeyPairGenerator.initialize(AlgorithmParameterSpec params, SecureRandom random) 使用给定的参数集和随机源初始化密钥对生成器。voidKeyPairGeneratorSpi.initialize(AlgorithmParameterSpec params, SecureRandom random) 使用指定的参数集和用户提供的随机源初始化密钥对生成器。final voidSignature.setParameter(AlgorithmParameterSpec params) 使用指定的参数值初始化此Signature对象。java.security 中的构造函数,参数类型为 AlgorithmParameterSpec修饰符构造方法描述PasswordProtection(char[] password, String protectionAlgorithm, AlgorithmParameterSpec protectionParameters) 创建密码参数并指定在加密密钥库条目时要使用的保护算法和相关参数。 -
AlgorithmParameterSpec 在 java.security.interfaces 中的用法
修饰符和类型方法描述default AlgorithmParameterSpecRSAKey.getParams()返回与此键关联的参数。XECKey.getParams()返回与密钥关联的算法参数。 -
AlgorithmParameterSpec 在 java.security.spec 中的用法
修饰符和类型类描述final class这个不可变类指定用于生成 DSA 参数的参数集,如 FIPS 186-3 数字签名标准 (DSS) 中指定的那样。class此类指定与 DSA 算法一起使用的参数集。class此不可变类指定用于生成椭圆曲线 (EC) 域参数的参数集。class此不可变类指定用于椭圆曲线密码术 (ECC) 的域参数集。class用于指定 EdDSA 签名和验证参数的类。class此类指定在 OAEP 填充和 RSASSA-PSS 签名方案中与掩码生成函数 MGF1 一起使用的参数集,如 PKCS#1 v2.2 标准中所定义。class此类用于指定由标准名称确定的任何算法参数。class此类指定 RSASSA-PSS 签名方案的参数规范,如 PKCS#1 v2.2 标准中所定义。class此类指定用于生成 RSA 密钥对的参数集。修饰符和类型方法描述RSAKeyGenParameterSpec.getKeyParams()返回要与键关联的参数。PSSParameterSpec.getMGFParameters()返回掩码生成函数的参数。RSAPrivateKeySpec.getParams()返回与此键关联的参数,如果不存在则可能为 null。RSAPublicKeySpec.getParams()返回与此键关联的参数,如果不存在则可能为 null。XECPrivateKeySpec.getParams()获取定义曲线和其他设置的算法参数。XECPublicKeySpec.getParams()获取定义曲线和其他设置的算法参数。java.security.spec 中的构造函数,参数类型为 AlgorithmParameterSpec修饰符构造方法描述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 坐标构建公钥规范。 -
AlgorithmParameterSpec 在 javax.crypto 中的用法
javax.crypto 中返回 AlgorithmParameterSpec 的方法修饰符和类型方法描述static final AlgorithmParameterSpecCipher.getMaxAllowedParameterSpec(String transformation) 返回一个 {code AlgorithmParameterSpec} 对象,其中包含根据管辖策略文件的最大Cipher参数值。javax.crypto 中的方法,参数类型为 AlgorithmParameterSpec修饰符和类型方法描述protected abstract voidCipherSpi.engineInit(int opmode, Key key, AlgorithmParameterSpec params, SecureRandom random) 使用密钥、一组算法参数和随机源初始化此CipherSpi对象。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。final voidCipher.init(int opmode, Key key, AlgorithmParameterSpec params) 使用密钥和一组算法参数初始化此Cipher对象。final voidCipher.init(int opmode, Key key, AlgorithmParameterSpec params, SecureRandom random) 使用密钥、一组算法参数和随机源初始化此Cipher对象。final voidExemptionMechanism.init(Key key, AlgorithmParameterSpec params) 使用密钥和一组算法参数初始化此豁免机制。final voidKeyAgreement.init(Key key, AlgorithmParameterSpec params) 使用给定的密钥和算法参数集初始化此密钥协议。final voidKeyAgreement.init(Key key, AlgorithmParameterSpec params, SecureRandom random) 使用给定的密钥、算法参数集和随机源初始化此密钥协议。final voidKeyGenerator.init(AlgorithmParameterSpec params) 使用指定的参数集初始化此密钥生成器。final voidKeyGenerator.init(AlgorithmParameterSpec params, SecureRandom random) 使用指定的参数集和用户提供的随机源初始化此密钥生成器。final voidMac.init(Key key, AlgorithmParameterSpec params) 使用给定的密钥和算法参数初始化此Mac对象。 -
AlgorithmParameterSpec 在 javax.crypto.spec 中的用法
修饰符和类型类描述final class此类指定用于 恰恰20 算法的参数。class此类指定用于生成用于 Diffie-Hellman 密钥协议的 Diffie-Hellman(系统)参数的参数集。class此类指定与 Diffie-Hellman 算法一起使用的参数集,如 PKCS #3 中所指定:Diffie-Hellman 密钥协议标准.class使用 Galois/Counter Mode (GCM) 模式指定Cipher所需的参数集。class这个类指定一个初始化向量 (IV).class此类指定与 OAEP 填充一起使用的参数集,如 PKCS#1 v2.2 标准中所定义。class此类指定用于基于密码的加密 (PBE) 的参数集,如 PKCS #5 标准中所定义。class此类指定用于 RC2 算法的参数。class此类指定用于 RC5 算法的参数。修饰符和类型方法描述OAEPParameterSpec.getMGFParameters()返回掩码生成函数的参数。PBEParameterSpec.getParameterSpec()返回密码算法参数说明。javax.crypto.spec 中的构造函数,参数类型为 AlgorithmParameterSpec修饰符构造方法描述OAEPParameterSpec(String mdName, String mgfName, AlgorithmParameterSpec mgfSpec, PSource pSrc) 使用指定的消息摘要算法mdName、掩码生成函数算法mgfName、掩码生成函数的参数mgfSpec和编码输入源 PpSrc为 PKCS #1 标准中定义的 OAEP 填充构造参数集。PBEParameterSpec(byte[] salt, int iterationCount, AlgorithmParameterSpec paramSpec) 为 PKCS #5 标准中定义的基于密码的加密构造参数集。 -
AlgorithmParameterSpec 在 javax.xml.crypto 中的用法
-
AlgorithmParameterSpec 在 javax.xml.crypto.dsig 中的用法
修饰符和类型方法描述CanonicalizationMethod.getParameterSpec()返回与此CanonicalizationMethod关联的特定于算法的输入参数。DigestMethod.getParameterSpec()返回与此DigestMethod关联的特定于算法的输入参数。SignatureMethod.getParameterSpec()返回此SignatureMethod的算法特定输入参数。Transform.getParameterSpec()返回与此Transform关联的特定于算法的输入参数。 -
AlgorithmParameterSpec 在 javax.xml.crypto.dsig.spec 中的用法
修饰符和类型接口描述interfaceCanonicalizationMethod算法的算法参数规范。interfaceDigestMethod算法的算法参数规范。interfaceXMLSignatureMethod算法的算法参数规范。interfaceTransform算法的算法参数规范。修饰符和类型类描述final classW3C 建议的参数:独有的 XML 规范化 (C14N) 算法。final classXML 签名 HMAC 算法 的参数。final classXML 签名 RSASSA-PSS 算法 的参数。final classW3C Recommendation XPath Filter 2.0 变换算法 的参数。final classXPath过滤变换算法 的参数。final classXSLT 转换算法 的参数。