Uses of Interface
java.security.Key
-
Packages that use Key 软件包 描述 java.security 提供安全框架的类和接口。java.security.interfaces 提供用于生成RSA实验室技术说明PKCS#1中定义的RSA(Rivest,Shamir和Adleman AsymmetricCipher算法)密钥的接口,以及NIST的FIPS-186中定义的DSA(数字签名算法)密钥。javax.crypto 提供加密操作的类和接口。javax.crypto.interfaces 为RSA Laboratories的PKCS#3中定义的Diffie-Hellman密钥提供接口。javax.crypto.spec 提供关键规范和算法参数规范的类和接口。javax.security.auth.kerberos 此程序包包含与Kerberos网络身份验证协议相关的实用程序类。javax.xml.crypto XML加密的常用类。javax.xml.crypto.dsig.dom javax.xml.crypto.dsig包的特定于DOM的类。 -
-
Uses of Key in java.security
Subinterfaces of Key in java.security 变量和类型 接口 描述 interfacePrivateKey私钥。interfacePublicKey公钥。Methods in java.security that return Key 变量和类型 方法 描述 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 变量和类型 方法 描述 protected abstract <T extends KeySpec>
TKeyFactorySpi. engineGetKeySpec(Key key, 类<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, 类<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 变量和类型 接口 描述 interfaceDSAPrivateKeyDSA私钥的标准接口。interfaceDSAPublicKeyDSA公钥的接口。interfaceECPrivateKey椭圆曲线(EC)私钥的接口。interfaceECPublicKey椭圆曲线(EC)公钥的接口。interfaceRSAMultiPrimePrivateCrtKey使用 中国剩余定理 (CRT)信息值的 PKCS#1 v2.2标准中定义的RSA多主私钥的接口。interfaceRSAPrivateCrtKeyRSA私钥的接口,如 PKCS#1 v2.2标准中所定义,使用 中国剩余定理 (CRT)信息值。interfaceRSAPrivateKeyRSA私钥的接口。interfaceRSAPublicKeyRSA公钥的接口。interfaceXECPrivateKeyRFC 7748定义的椭圆曲线私钥的接口。interfaceXECPublicKeyRFC 7748定义的椭圆曲线公钥的接口。 -
Uses of Key in javax.crypto
Subinterfaces of Key in javax.crypto 变量和类型 接口 描述 interfaceSecretKey秘密(对称)密钥。Methods in javax.crypto that return Key 变量和类型 方法 描述 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 变量和类型 方法 描述 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 变量和类型 接口 描述 interfaceDHPrivateKeyDiffie-Hellman私钥的接口。interfaceDHPublicKeyDiffie-Hellman公钥的接口。interfacePBEKeyPBE密钥的接口。 -
Uses of Key in javax.crypto.spec
Classes in javax.crypto.spec that implement Key 变量和类型 类 描述 classSecretKeySpec此类以独立于提供者的方式指定密钥。 -
Uses of Key in javax.security.auth.kerberos
Classes in javax.security.auth.kerberos that implement Key 变量和类型 类 描述 classEncryptionKey此类封装Kerberos中使用的EncryptionKey。classKerberosKey此类封装了Kerberos主体的长期密钥。 -
Uses of Key in javax.xml.crypto
Methods in javax.xml.crypto that return Key 变量和类型 方法 描述 KeyKeySelectorResult. getKey()返回所选键。Methods in javax.xml.crypto with parameters of type Key 变量和类型 方法 描述 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 构造器 描述 DOMSignContext(Key signingKey, Node parent)使用指定的签名密钥和父节点创建DOMSignContext。DOMSignContext(Key signingKey, Node parent, Node nextSibling)使用指定的签名密钥,父节点和下一个兄弟节点创建DOMSignContext。DOMValidateContext(Key validatingKey, Node node)创建包含指定键和节点的DOMValidateContext。
-