类的用途
java.security.InvalidKeyException
使用 InvalidKeyException 的包
包
描述
为安全框架提供类和接口。
提供用于解析和管理证书、证书撤销列表 (CRL) 和证书路径的类和接口。
提供用于加密操作的类和接口。
提供关键规范和算法参数规范的类和接口。
提供公钥证书类。
-
InvalidKeyException 在 java.security 中的用法
修饰符和类型方法描述protected abstract voidSignatureSpi.engineInitSign(PrivateKey privateKey) 使用指定的私钥初始化此Signature对象以进行签名操作。protected voidSignatureSpi.engineInitSign(PrivateKey privateKey, SecureRandom random) 使用指定的私钥和签名操作的随机源初始化此Signature对象。protected abstract voidSignatureSpi.engineInitVerify(PublicKey publicKey) 使用指定的公钥初始化此Signature对象以进行验证操作。protected abstract KeyKeyFactorySpi.engineTranslateKey(Key key) 将其提供者可能未知或可能不受信任的密钥对象转换为此密钥工厂的相应密钥对象。final voidSignature.initSign(PrivateKey privateKey) 初始化此对象以进行签名。final voidSignature.initSign(PrivateKey privateKey, SecureRandom random) 初始化此对象以进行签名。final voidSignature.initVerify(Certificate certificate) 使用给定证书中的公钥初始化此对象以进行验证。final voidSignature.initVerify(PublicKey publicKey) 初始化此对象以进行验证。final KeyKeyFactory.translateKey(Key key) 将其提供者可能未知或可能不受信任的密钥对象转换为此密钥工厂的相应密钥对象。boolean使用指定的验证引擎,使用给定的验证密钥验证此SignedObject中的签名是存储在其中的对象的有效签名。java.security 中的构造函数抛出 InvalidKeyException修饰符构造方法描述SignedObject(Serializable object, PrivateKey signingKey, Signature signingEngine) 从任何 Serializable 对象构造一个SignedObject。 -
InvalidKeyException 在 java.security.cert 中的用法
修饰符和类型方法描述abstract void验证此证书是否使用与指定公钥相对应的私钥签名。abstract void验证此证书是否使用与指定公钥相对应的私钥签名。void验证此证书是否使用与指定公钥相对应的私钥签名。void验证此证书是否使用与指定公钥相对应的私钥签名。abstract void验证此 CRL 是否使用与给定公钥相对应的私钥签名。abstract void验证此 CRL 是否使用与给定公钥相对应的私钥签名。void验证此 CRL 是否使用与给定公钥相对应的私钥签名。 -
InvalidKeyException 在 javax.crypto 中的用法
修饰符和类型方法描述final Key参与此密钥协议的其他方之一收到的给定密钥执行此密钥协议的下一阶段。protected abstract KeyKeyAgreementSpi.engineDoPhase(Key key, boolean lastPhase) 参与此密钥协议的其他方之一收到的给定密钥执行此密钥协议的下一阶段。protected abstract SecretKeyKeyAgreementSpi.engineGenerateSecret(String algorithm) 创建共享机密并将其作为请求算法类型的密钥对象返回。protected intCipherSpi.engineGetKeySize(Key key) 以位为单位返回给定密钥对象的密钥大小。protected abstract voidCipherSpi.engineInit(int opmode, Key key, AlgorithmParameters params, SecureRandom random) 使用密钥、一组算法参数和随机源初始化此CipherSpi对象。protected abstract voidCipherSpi.engineInit(int opmode, Key key, SecureRandom random) 使用密钥和随机源初始化此CipherSpi对象。protected abstract voidCipherSpi.engineInit(int opmode, Key key, AlgorithmParameterSpec params, SecureRandom random) 使用密钥、一组算法参数和随机源初始化此CipherSpi对象。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 abstract SecretKeySecretKeyFactorySpi.engineTranslateKey(SecretKey key) 将其提供者可能未知或可能不受信任的密钥对象转换为该密钥工厂的相应密钥对象。protected KeyCipherSpi.engineUnwrap(byte[] wrappedKey, String wrappedKeyAlgorithm, int wrappedKeyType) 打开先前包装的密钥。protected byte[]CipherSpi.engineWrap(Key key) 包裹一把钥匙。final SecretKeyKeyAgreement.generateSecret(String algorithm) 创建共享机密并将其作为指定算法的SecretKey对象返回。EncryptedPrivateKeyInfo.getKeySpec(Key decryptKey) 从加密数据中提取封闭的 PKCS8EncodedKeySpec 对象并将其返回。EncryptedPrivateKeyInfo.getKeySpec(Key decryptKey, String providerName) 从加密数据中提取封闭的 PKCS8EncodedKeySpec 对象并将其返回。EncryptedPrivateKeyInfo.getKeySpec(Key decryptKey, Provider provider) 从加密数据中提取封闭的 PKCS8EncodedKeySpec 对象并将其返回。final Object检索原始(封装的)对象。final Object检索原始(封装的)对象。final voidCipher.init(int opmode, Certificate certificate) 使用给定证书中的公钥初始化此Cipher对象。final voidCipher.init(int opmode, Certificate certificate, SecureRandom random) 使用来自给定证书的公钥和随机源初始化此Cipher对象。final void使用键初始化此Cipher对象。final voidCipher.init(int opmode, Key key, AlgorithmParameters params) 使用密钥和一组算法参数初始化此Cipher对象。final voidCipher.init(int opmode, Key key, AlgorithmParameters params, SecureRandom random) 使用密钥、一组算法参数和随机源初始化此Cipher对象。final voidCipher.init(int opmode, Key key, SecureRandom random) 使用密钥和随机源初始化此Cipher对象。final voidCipher.init(int opmode, Key key, AlgorithmParameterSpec params) 使用密钥和一组算法参数初始化此Cipher对象。final voidCipher.init(int opmode, Key key, AlgorithmParameterSpec params, SecureRandom random) 使用密钥、一组算法参数和随机源初始化此Cipher对象。final void使用密钥初始化此豁免机制。final voidExemptionMechanism.init(Key key, AlgorithmParameters params) 使用密钥和一组算法参数初始化此豁免机制。final voidExemptionMechanism.init(Key key, AlgorithmParameterSpec params) 使用密钥和一组算法参数初始化此豁免机制。final void用给定的密钥初始化本次密钥协商,要求密钥中包含本次密钥协商所需的所有算法参数。final voidKeyAgreement.init(Key key, SecureRandom random) 使用给定的密钥和随机源初始化此密钥协议。final voidKeyAgreement.init(Key key, AlgorithmParameterSpec params) 使用给定的密钥和算法参数集初始化此密钥协议。final voidKeyAgreement.init(Key key, AlgorithmParameterSpec params, SecureRandom random) 使用给定的密钥、算法参数集和随机源初始化此密钥协议。final void使用给定的键初始化此Mac对象。final voidMac.init(Key key, AlgorithmParameterSpec params) 使用给定的密钥和算法参数初始化此Mac对象。final SecretKeySecretKeyFactory.translateKey(SecretKey key) 将其提供者可能未知或可能不受信任的密钥对象转换为该密钥工厂的相应密钥对象。final Key打开先前包装的密钥。final byte[]包裹一把钥匙。 -
InvalidKeyException 在 javax.crypto.spec 中的用法
修饰符和类型方法描述static booleanDESedeKeySpec.isParityAdjusted(byte[] key, int offset) 检查给定的 DES-EDE 密钥(从offset开始)是否经过奇偶校验调整。static booleanDESKeySpec.isParityAdjusted(byte[] key, int offset) 检查给定的 DES 密钥材料(从offset开始)是否经过奇偶校验调整。static booleanDESKeySpec.isWeak(byte[] key, int offset) 检查给定的 DES 密钥材料是否弱或半弱。javax.crypto.spec 中的构造函数抛出 InvalidKeyException修饰符构造方法描述DESedeKeySpec(byte[] key) 使用key中的前 24 个字节作为 DES-EDE 密钥的密钥材料创建 DESedeKeySpec 对象。DESedeKeySpec(byte[] key, int offset) 使用key中的前 24 个字节(从offset开始)创建一个 DESedeKeySpec 对象作为 DES-EDE 密钥的密钥材料。DESKeySpec(byte[] key) 使用key中的前 8 个字节作为 DES 密钥的密钥材料创建 DESKeySpec 对象。DESKeySpec(byte[] key, int offset) 使用key中的前 8 个字节(从offset开始)创建一个 DESKeySpec 对象作为 DES 密钥的密钥材料。 -
InvalidKeyException 在 javax.security.cert 中的用法