Uses of Interface
java.security.Key
-
Packages that use Key 软件包 描述 java.security 提供安全框架的类和接口。java.security.interfaces 提供用于生成RSA实验室技术说明PKCS#1中定义的RSA(Rivest,Shamir和Adleman非对称密码算法)密钥以及NIST FIPS-186中定义的DSA(数字签名算法)密钥的接口。javax.crypto 提供加密操作的类和接口。javax.crypto.interfaces 提供RSA实验室PKCS#3中定义的Diffie-Hellman密钥的接口。javax.crypto.spec 提供关键规范和算法参数规范的类和接口。javax.security.auth.kerberos 此包包含与Kerberos网络身份验证协议相关的实用程序类。javax.xml.crypto XML加密的通用类。javax.xml.crypto.dsig.dom DOM特定的类为javax.xml.crypto.dsig包。 -
-
Uses of Key in java.security
Subinterfaces of Key in java.security Modifier and Type 接口 描述 interfacePrivateKey私钥。interfacePublicKey公钥Methods in java.security that return Key Modifier and Type 方法 描述 abstract KeyKeyStoreSpi. engineGetKey(String alias, char[] password)返回与给定别名相关联的密钥,使用给定的密码恢复它。protected abstract KeyKeyFactorySpi. engineTranslateKey(Key key)将其提供者可能未知或潜在不受信任的关键对象转换为该关键工厂的相应关键对象。KeyKeyStore. getKey(String alias, char[] password)返回与给定别名相关联的密钥,使用给定的密码恢复它。KeyKeyFactory. translateKey(Key key)将其提供者可能未知或潜在不受信任的关键对象转换为该关键工厂的相应关键对象。Methods in java.security with parameters of type Key Modifier and Type 方法 描述 protected abstract <T extends KeySpec>
TKeyFactorySpi. engineGetKeySpec(Key key, Class<T> keySpec)返回给定键对象的规范(关键材料)。abstract voidKeyStoreSpi. engineSetKeyEntry(String alias, Key key, char[] password, Certificate[] chain)将给定的密钥分配给给定的别名,并使用给定的密码进行保护。protected abstract KeyKeyFactorySpi. engineTranslateKey(Key key)将其提供者可能未知或潜在不受信任的关键对象转换为该关键工厂的相应关键对象。<T extends KeySpec>
TKeyFactory. getKeySpec(Key key, Class<T> keySpec)返回给定键对象的规范(关键材料)。booleanAlgorithmConstraints. permits(Set<CryptoPrimitive> primitives, String algorithm, Key key, AlgorithmParameters parameters)确定算法和相应的密钥是否被授予对指定的加密原语的许可。booleanAlgorithmConstraints. permits(Set<CryptoPrimitive> primitives, Key key)确定一个密钥是否被授予了指定的加密原语的权限。voidKeyStore. setKeyEntry(String alias, Key key, char[] password, Certificate[] chain)将给定的密钥分配给给定的别名,并使用给定的密码进行保护。KeyKeyFactory. translateKey(Key key)将其提供者可能未知或潜在不受信任的关键对象转换为该关键工厂的相应关键对象。 -
Uses of Key in java.security.interfaces
Subinterfaces of Key in java.security.interfaces Modifier and Type 接口 描述 interfaceDSAPrivateKeyDSA私钥的标准接口。interfaceDSAPublicKeyDSA公钥的接口。interfaceECPrivateKey椭圆曲线(EC)私钥的界面。interfaceECPublicKey椭圆曲线(EC)公钥的界面。interfaceRSAMultiPrimePrivateCrtKey与PKCS#1 v2.1中定义的使用 中国剩余定理 (CRT)信息值的RSA多权限私钥的接口。interfaceRSAPrivateCrtKey使用 中国剩余定理 (CRT)信息值的PKCS#1标准中定义的RSA私钥的接口。interfaceRSAPrivateKeyRSA私钥的接口。interfaceRSAPublicKey与RSA公钥的接口。 -
Uses of Key in javax.crypto
Subinterfaces of Key in javax.crypto Modifier and Type 接口 描述 interfaceSecretKey一个秘密(对称)键。Methods in javax.crypto that return Key Modifier and Type 方法 描述 KeyKeyAgreement. doPhase(Key key, boolean lastPhase)执行该关键协议的下一阶段,其中包含从本协议涉及的其中一方收到的给定密钥。protected abstract KeyKeyAgreementSpi. engineDoPhase(Key key, boolean lastPhase)执行该关键协议的下一阶段,其中包含从本协议涉及的其中一方收到的给定密钥。protected KeyCipherSpi. engineUnwrap(byte[] wrappedKey, String wrappedKeyAlgorithm, int wrappedKeyType)打开以前包装的钥匙。KeyCipher. unwrap(byte[] wrappedKey, String wrappedKeyAlgorithm, int wrappedKeyType)打开以前包装的钥匙。Methods in javax.crypto with parameters of type Key Modifier and Type 方法 描述 KeyKeyAgreement. doPhase(Key key, boolean lastPhase)执行该关键协议的下一阶段,其中包含从本协议涉及的其中一方收到的给定密钥。protected abstract KeyKeyAgreementSpi. engineDoPhase(Key key, boolean lastPhase)执行该关键协议的下一阶段,其中包含从本协议涉及的其中一方收到的给定密钥。protected intCipherSpi. engineGetKeySize(Key key)以位为单位返回给定键对象的键大小。protected abstract voidCipherSpi. engineInit(int opmode, Key key, AlgorithmParameters params, SecureRandom random)使用密钥,一组算法参数和随机源初始化此密码。protected abstract voidCipherSpi. engineInit(int opmode, Key key, SecureRandom random)用密钥和随机源初始化此密码。protected abstract voidCipherSpi. engineInit(int opmode, Key key, AlgorithmParameterSpec params, SecureRandom random)使用密钥,一组算法参数和随机源初始化此密码。protected abstract voidExemptionMechanismSpi. engineInit(Key key)使用密钥初始化此豁免机制。protected abstract voidExemptionMechanismSpi. engineInit(Key key, AlgorithmParameters params)使用密钥和一组算法参数初始化此豁免机制。protected abstract voidExemptionMechanismSpi. engineInit(Key key, AlgorithmParameterSpec params)使用密钥和一组算法参数初始化此豁免机制。protected abstract voidKeyAgreementSpi. engineInit(Key key, SecureRandom random)用给定的密钥和随机源初始化这个密钥协商。protected abstract voidKeyAgreementSpi. engineInit(Key key, AlgorithmParameterSpec params, SecureRandom random)使用给定的密钥,算法参数集合和随机源初始化此密钥协议。protected abstract voidMacSpi. engineInit(Key key, AlgorithmParameterSpec params)用给定(秘密)密钥和算法参数初始化MAC。protected byte[]CipherSpi. engineWrap(Key key)包裹钥匙PKCS8EncodedKeySpecEncryptedPrivateKeyInfo. getKeySpec(Key decryptKey)从加密数据中提取附带的PKCS8EncodedKeySpec对象并返回。PKCS8EncodedKeySpecEncryptedPrivateKeyInfo. getKeySpec(Key decryptKey, String providerName)从加密数据中提取附带的PKCS8EncodedKeySpec对象并返回。PKCS8EncodedKeySpecEncryptedPrivateKeyInfo. getKeySpec(Key decryptKey, Provider provider)从加密数据中提取附带的PKCS8EncodedKeySpec对象并返回。ObjectSealedObject. getObject(Key key)检索原始(封装)对象。ObjectSealedObject. getObject(Key key, String provider)检索原始(封装)对象。voidCipher. init(int opmode, Key key)用密钥初始化此密码。voidCipher. init(int opmode, Key key, AlgorithmParameters params)使用密钥和一组算法参数初始化此密码。voidCipher. init(int opmode, Key key, AlgorithmParameters params, SecureRandom random)使用密钥,一组算法参数和随机源初始化此密码。voidCipher. init(int opmode, Key key, SecureRandom random)用密钥和随机源初始化此密码。voidCipher. init(int opmode, Key key, AlgorithmParameterSpec params)使用密钥和一组算法参数初始化此密码。voidCipher. init(int opmode, Key key, AlgorithmParameterSpec params, SecureRandom random)使用密钥,一组算法参数和随机源初始化此密码。voidExemptionMechanism. init(Key key)使用密钥初始化此豁免机制。voidExemptionMechanism. init(Key key, AlgorithmParameters params)使用密钥和一组算法参数初始化此豁免机制。voidExemptionMechanism. init(Key key, AlgorithmParameterSpec params)使用密钥和一组算法参数初始化此豁免机制。voidKeyAgreement. init(Key key)使用给定的密钥初始化此密钥协议,该密钥需要包含此密钥协议所需的所有算法参数。voidKeyAgreement. init(Key key, SecureRandom random)用给定的密钥和随机源初始化这个密钥协商。voidKeyAgreement. init(Key key, AlgorithmParameterSpec params)使用给定的密钥和算法参数集初始化此密钥协议。voidKeyAgreement. init(Key key, AlgorithmParameterSpec params, SecureRandom random)使用给定的密钥,算法参数集合和随机源初始化此密钥协议。voidMac. init(Key key)使用给定的键初始化此Mac对象。voidMac. init(Key key, AlgorithmParameterSpec params)使用给定的密钥和算法参数初始化此Mac对象。booleanExemptionMechanism. isCryptoAllowed(Key key)返回此豁免机制是否已成功生成结果blob。byte[]Cipher. wrap(Key key)包裹钥匙 -
Uses of Key in javax.crypto.interfaces
Subinterfaces of Key in javax.crypto.interfaces Modifier and Type 接口 描述 interfaceDHPrivateKey与Diffie-Hellman私钥的接口。interfaceDHPublicKey与Diffie-Hellman公钥的接口。interfacePBEKey与PBE密钥的接口。 -
Uses of Key in javax.crypto.spec
Classes in javax.crypto.spec that implement Key Modifier and Type Class 描述 classSecretKeySpec该类以独立于提供商的方式指定密钥。 -
Uses of Key in javax.security.auth.kerberos
Classes in javax.security.auth.kerberos that implement Key Modifier and Type Class 描述 classEncryptionKey此类封装了Kerberos中使用的EncryptionKey。classKerberosKey该类封装了Kerberos主体的长期密钥。 -
Uses of Key in javax.xml.crypto
Methods in javax.xml.crypto that return Key Modifier and Type 方法 描述 KeyKeySelectorResult. getKey()返回所选的键。Methods in javax.xml.crypto with parameters of type Key Modifier and Type 方法 描述 static KeySelectorKeySelector. singletonKeySelector(Key key)返回KeySelector总是选择指定密钥,不管的KeyInfo传递给它。 -
Uses of Key in javax.xml.crypto.dsig.dom
Constructors in javax.xml.crypto.dsig.dom with parameters of type Key Constructor 描述 DOMSignContext(Key signingKey, Node parent)使用指定的签名密钥和父节点创建一个DOMSignContext。DOMSignContext(Key signingKey, Node parent, Node nextSibling)使用指定的签名密钥,父节点和下一个兄弟节点创建一个DOMSignContext。DOMValidateContext(Key validatingKey, Node node)创建一个包含指定的键和节点的DOMValidateContext。
-