软件包 | 描述 |
---|---|
java.security |
为安全框架提供类和接口。
|
java.security.cert |
提供用于解析和管理证书的类和接口,证书撤销列表(CRL),认证路径。
|
javax.crypto |
提供加密操作的类和接口。
|
javax.net.ssl |
为安全套接字包提供类。
|
javax.security.auth.login |
这个包提供了一个可插拔认证框架。
|
javax.security.cert |
提供公钥证书的类。
|
javax.xml.crypto.dsig |
用于生成和验证XML数字签名的类。
|
Modifier and Type | Method and Description |
---|---|
KeyStore.Entry |
KeyStoreSpi.engineGetEntry(String alias, KeyStore.ProtectionParameter protParam)
获取指定别名与指定的保护参数的
KeyStore.Entry 。
|
abstract Key |
KeyStoreSpi.engineGetKey(String alias, char[] password)
返回与给定别名关联的密钥,使用给定的密码来恢复它。
|
abstract void |
KeyStoreSpi.engineLoad(InputStream stream, char[] password)
载荷从给定的输入流密钥库。
|
void |
KeyStoreSpi.engineLoad(KeyStore.LoadStoreParameter param)
负载使用给定的
KeyStore.LoadStoreParameter 密钥库。
|
void |
KeyStoreSpi.engineStore(KeyStore.LoadStoreParameter param)
商店这个密钥使用给定的
KeyStore.LoadStoreParmeter 。
|
abstract void |
KeyStoreSpi.engineStore(OutputStream stream, char[] password)
商店这个密钥库到给定的输出流,其完整性与给定的密码保护。
|
KeyStore.Entry |
KeyStore.getEntry(String alias, KeyStore.ProtectionParameter protParam)
获取指定别名与指定参数保护密钥库
Entry 。
|
static KeyPairGenerator |
KeyPairGenerator.getInstance(String algorithm)
返回KeyPairGenerator对象生成的公钥/私钥对指定的算法。
|
static Signature |
Signature.getInstance(String algorithm)
返回一个实现指定签名算法的签名对象。
|
static KeyFactory |
KeyFactory.getInstance(String algorithm)
返回一个对象,keyfactory转换指定算法的公共/私人密钥。
|
static SecureRandom |
SecureRandom.getInstance(String algorithm)
返回一个实现指定随机数发生器(RNG)算法提供的对象。
|
static AlgorithmParameterGenerator |
AlgorithmParameterGenerator.getInstance(String algorithm)
返回生成一组参数用于指定算法的一个algorithmparametergenerator对象。
|
static MessageDigest |
MessageDigest.getInstance(String algorithm)
返回一个消息摘要对象实现指定的摘要算法。
|
static AlgorithmParameters |
AlgorithmParameters.getInstance(String algorithm)
返回指定算法的参数对象。
|
static Policy |
Policy.getInstance(String type, Policy.Parameters params)
返回指定类型的策略对象。
|
static Policy |
Policy.getInstance(String type, Policy.Parameters params, Provider provider)
返回指定类型的策略对象。
|
static Policy |
Policy.getInstance(String type, Policy.Parameters params, String provider)
返回指定类型的策略对象。
|
static KeyPairGenerator |
KeyPairGenerator.getInstance(String algorithm, Provider provider)
返回KeyPairGenerator对象生成的公钥/私钥对指定的算法。
|
static Signature |
Signature.getInstance(String algorithm, Provider provider)
返回一个实现指定签名算法的签名对象。
|
static KeyFactory |
KeyFactory.getInstance(String algorithm, Provider provider)
返回一个对象,keyfactory转换指定算法的公共/私人密钥。
|
static SecureRandom |
SecureRandom.getInstance(String algorithm, Provider provider)
返回一个实现指定随机数发生器(RNG)算法提供的对象。
|
static AlgorithmParameterGenerator |
AlgorithmParameterGenerator.getInstance(String algorithm, Provider provider)
返回生成一组参数用于指定算法的一个algorithmparametergenerator对象。
|
static MessageDigest |
MessageDigest.getInstance(String algorithm, Provider provider)
返回一个消息摘要对象实现指定的摘要算法。
|
static AlgorithmParameters |
AlgorithmParameters.getInstance(String algorithm, Provider provider)
返回指定算法的参数对象。
|
static KeyPairGenerator |
KeyPairGenerator.getInstance(String algorithm, String provider)
返回KeyPairGenerator对象生成的公钥/私钥对指定的算法。
|
static Signature |
Signature.getInstance(String algorithm, String provider)
返回一个实现指定签名算法的签名对象。
|
static KeyFactory |
KeyFactory.getInstance(String algorithm, String provider)
返回一个对象,keyfactory转换指定算法的公共/私人密钥。
|
static SecureRandom |
SecureRandom.getInstance(String algorithm, String provider)
返回一个实现指定随机数发生器(RNG)算法提供的对象。
|
static AlgorithmParameterGenerator |
AlgorithmParameterGenerator.getInstance(String algorithm, String provider)
返回生成一组参数用于指定算法的一个algorithmparametergenerator对象。
|
static MessageDigest |
MessageDigest.getInstance(String algorithm, String provider)
返回一个消息摘要对象实现指定的摘要算法。
|
static AlgorithmParameters |
AlgorithmParameters.getInstance(String algorithm, String provider)
返回指定算法的参数对象。
|
static SecureRandom |
SecureRandom.getInstanceStrong()
|
Key |
KeyStore.getKey(String alias, char[] password)
返回与给定别名关联的密钥,使用给定的密码来恢复它。
|
void |
KeyStore.load(InputStream stream, char[] password)
加载这个密钥库从给定的输入流。
|
void |
KeyStore.load(KeyStore.LoadStoreParameter param)
加载这个密钥使用给定的
LoadStoreParameter 。
|
Object |
Provider.Service.newInstance(Object constructorParameter)
返回此服务所描述的实现的新实例。
|
void |
KeyStore.store(KeyStore.LoadStoreParameter param)
商店这个密钥使用给定的
LoadStoreParameter 。
|
void |
KeyStore.store(OutputStream stream, char[] password)
商店这个密钥库到给定的输出流,其完整性与给定的密码保护。
|
Modifier and Type | Method and Description |
---|---|
static CertPathValidator |
CertPathValidator.getInstance(String algorithm)
返回一个
CertPathValidator 对象实现指定的算法。
|
static CertPathBuilder |
CertPathBuilder.getInstance(String algorithm)
返回一个
CertPathBuilder 对象实现指定的算法。
|
static CertStore |
CertStore.getInstance(String type, CertStoreParameters params)
返回一个
CertStore 对象实现指定的
CertStore 类型与指定的参数初始化。
|
static CertStore |
CertStore.getInstance(String type, CertStoreParameters params, Provider provider)
返回一个
CertStore 对象实现指定的
CertStore 型。
|
static CertStore |
CertStore.getInstance(String type, CertStoreParameters params, String provider)
返回一个实现指定
CertStore 型
CertStore 对象。
|
static CertPathValidator |
CertPathValidator.getInstance(String algorithm, Provider provider)
返回一个
CertPathValidator 对象实现指定的算法。
|
static CertPathBuilder |
CertPathBuilder.getInstance(String algorithm, Provider provider)
返回一个
CertPathBuilder 对象实现指定的算法。
|
static CertPathValidator |
CertPathValidator.getInstance(String algorithm, String provider)
返回一个指定的算法实现
CertPathValidator 对象。
|
static CertPathBuilder |
CertPathBuilder.getInstance(String algorithm, String provider)
返回一个
CertPathBuilder 对象实现指定的算法。
|
abstract void |
X509CRL.verify(PublicKey key)
验证这个CRL签署使用对应于给定的公钥私钥。
|
abstract void |
Certificate.verify(PublicKey key)
验证该证书是使用对应于指定公共密钥的私钥签名的。
|
void |
X509CRL.verify(PublicKey key, Provider sigProvider)
验证这个CRL签署使用对应于给定的公钥私钥。
|
void |
Certificate.verify(PublicKey key, Provider sigProvider)
验证该证书是使用对应于指定公共密钥的私钥签名的。
|
void |
X509Certificate.verify(PublicKey key, Provider sigProvider)
验证该证书是使用对应于指定公共密钥的私钥签名的。
|
abstract void |
X509CRL.verify(PublicKey key, String sigProvider)
验证这个CRL签署使用对应于给定的公钥私钥。
|
abstract void |
Certificate.verify(PublicKey key, String sigProvider)
验证该证书是使用对应于指定公共密钥的私钥签名的。
|
Modifier and Type | Method and Description |
---|---|
protected abstract SecretKey |
KeyAgreementSpi.engineGenerateSecret(String algorithm)
创建共享密钥,并将其作为所请求的算法类型的密钥对象返回。
|
protected abstract void |
CipherSpi.engineSetMode(String mode)
设置此密码的模式。
|
protected Key |
CipherSpi.engineUnwrap(byte[] wrappedKey, String wrappedKeyAlgorithm, int wrappedKeyType)
打开先前包的关键。
|
SecretKey |
KeyAgreement.generateSecret(String algorithm)
创建共享的秘密,并将其作为指定的算法
SecretKey 对象。
|
static SecretKeyFactory |
SecretKeyFactory.getInstance(String algorithm)
返回一个对象,
SecretKeyFactory 转换指定的算法密钥。
|
static KeyGenerator |
KeyGenerator.getInstance(String algorithm)
返回一个
KeyGenerator 对象指定密钥生成算法。
|
static Cipher |
Cipher.getInstance(String transformation)
返回一个
Cipher 对象实现指定的变换。
|
static ExemptionMechanism |
ExemptionMechanism.getInstance(String algorithm)
返回一个
ExemptionMechanism 对象实现指定的免责机制的算法。
|
static KeyAgreement |
KeyAgreement.getInstance(String algorithm)
返回一个
KeyAgreement 对象实现指定的密钥协议算法。
|
static Mac |
Mac.getInstance(String algorithm)
返回一个
Mac 对象实现指定的MAC算法。
|
static SecretKeyFactory |
SecretKeyFactory.getInstance(String algorithm, Provider provider)
返回一个对象,
SecretKeyFactory 转换指定的算法密钥。
|
static KeyGenerator |
KeyGenerator.getInstance(String algorithm, Provider provider)
返回一个
KeyGenerator 对象指定密钥生成算法。
|
static Cipher |
Cipher.getInstance(String transformation, Provider provider)
返回一个
Cipher 对象实现指定的变换。
|
static ExemptionMechanism |
ExemptionMechanism.getInstance(String algorithm, Provider provider)
返回一个
ExemptionMechanism 对象实现指定的免责机制的算法。
|
static KeyAgreement |
KeyAgreement.getInstance(String algorithm, Provider provider)
返回一个
KeyAgreement 对象实现指定的密钥协议算法。
|
static Mac |
Mac.getInstance(String algorithm, Provider provider)
返回一个
Mac 对象实现指定的MAC算法。
|
static SecretKeyFactory |
SecretKeyFactory.getInstance(String algorithm, String provider)
返回一个对象,
SecretKeyFactory 转换指定的算法密钥。
|
static KeyGenerator |
KeyGenerator.getInstance(String algorithm, String provider)
返回一个
KeyGenerator 对象指定密钥生成算法。
|
static Cipher |
Cipher.getInstance(String transformation, String provider)
返回一个实现指定转换
Cipher 对象。
|
static ExemptionMechanism |
ExemptionMechanism.getInstance(String algorithm, String provider)
返回一个
ExemptionMechanism 对象实现指定的免责机制的算法。
|
static KeyAgreement |
KeyAgreement.getInstance(String algorithm, String provider)
返回一个
KeyAgreement 对象实现指定的密钥协议算法。
|
static Mac |
Mac.getInstance(String algorithm, String provider)
返回一个
Mac 对象实现指定的MAC算法。
|
PKCS8EncodedKeySpec |
EncryptedPrivateKeyInfo.getKeySpec(Key decryptKey)
从加密的数据提取封闭pkcs8encodedkeyspec对象并返回它。
|
PKCS8EncodedKeySpec |
EncryptedPrivateKeyInfo.getKeySpec(Key decryptKey, Provider provider)
从加密的数据提取封闭pkcs8encodedkeyspec对象并返回它。
|
PKCS8EncodedKeySpec |
EncryptedPrivateKeyInfo.getKeySpec(Key decryptKey, String providerName)
从加密的数据提取封闭pkcs8encodedkeyspec对象并返回它。
|
static int |
Cipher.getMaxAllowedKeyLength(String transformation)
返回指定的变换的最大密钥长度根据安装JCE管辖政策文件。
|
static AlgorithmParameterSpec |
Cipher.getMaxAllowedParameterSpec(String transformation)
返回一个algorithmparameterspec对象包含的最大密码参数值根据司法政策文件。
|
Object |
SealedObject.getObject(Key key)
检索原始(封装的)对象。
|
Object |
SealedObject.getObject(Key key, String provider)
检索原始(封装的)对象。
|
Key |
Cipher.unwrap(byte[] wrappedKey, String wrappedKeyAlgorithm, int wrappedKeyType)
打开先前包的关键。
|
Constructor and Description |
---|
EncryptedPrivateKeyInfo(AlgorithmParameters algParams, byte[] encryptedData)
构建了一个从加密算法和加密数据的参数
EncryptedPrivateKeyInfo 。
|
EncryptedPrivateKeyInfo(String algName, byte[] encryptedData)
构建了一个从加密算法和加密数据的名称
EncryptedPrivateKeyInfo 。
|
Modifier and Type | Method and Description |
---|---|
protected abstract void |
KeyManagerFactorySpi.engineInit(KeyStore ks, char[] password)
一个关键的材料源初始化这个厂。
|
static SSLContext |
SSLContext.getDefault()
返回默认SSL上下文。
|
static KeyManagerFactory |
KeyManagerFactory.getInstance(String algorithm)
返回一个
KeyManagerFactory 对象作为一个关键管理人员厂。
|
static SSLContext |
SSLContext.getInstance(String protocol)
返回一个
SSLContext 对象实现指定的安全套接字协议。
|
static TrustManagerFactory |
TrustManagerFactory.getInstance(String algorithm)
返回一个
TrustManagerFactory 对象作为一个信托经理厂。
|
static KeyManagerFactory |
KeyManagerFactory.getInstance(String algorithm, Provider provider)
返回一个
KeyManagerFactory 对象作为一个关键管理人员厂。
|
static SSLContext |
SSLContext.getInstance(String protocol, Provider provider)
返回一个
SSLContext 对象实现指定的安全套接字协议。
|
static TrustManagerFactory |
TrustManagerFactory.getInstance(String algorithm, Provider provider)
返回一个
TrustManagerFactory 对象作为一个信托经理厂。
|
static KeyManagerFactory |
KeyManagerFactory.getInstance(String algorithm, String provider)
返回一个
KeyManagerFactory 对象作为一个关键管理人员厂。
|
static SSLContext |
SSLContext.getInstance(String protocol, String provider)
返回一个实现指定安全套接字协议
SSLContext 对象。
|
static TrustManagerFactory |
TrustManagerFactory.getInstance(String algorithm, String provider)
返回一个
TrustManagerFactory 对象作为一个信托经理厂。
|
void |
KeyManagerFactory.init(KeyStore ks, char[] password)
一个关键的材料源初始化这个厂。
|
Modifier and Type | Method and Description |
---|---|
static Configuration |
Configuration.getInstance(String type, Configuration.Parameters params)
返回指定类型的配置对象。
|
static Configuration |
Configuration.getInstance(String type, Configuration.Parameters params, Provider provider)
返回指定类型的配置对象。
|
static Configuration |
Configuration.getInstance(String type, Configuration.Parameters params, String provider)
返回指定类型的配置对象。
|
Modifier and Type | Method and Description |
---|---|
abstract void |
Certificate.verify(PublicKey key)
验证该证书是使用对应于指定公共密钥的私钥签名的。
|
abstract void |
Certificate.verify(PublicKey key, String sigProvider)
验证该证书是使用对应于指定公共密钥的私钥签名的。
|
Modifier and Type | Method and Description |
---|---|
static TransformService |
TransformService.getInstance(String algorithm, String mechanismType)
返回一个支持指定URI
TransformService 算法(例如:
Transform.XPATH2 )和机制(例如:DOM)。
|
static TransformService |
TransformService.getInstance(String algorithm, String mechanismType, Provider provider)
返回一个支持指定URI
TransformService 算法(例如:
Transform.XPATH2 )和机构类型(例如:DOM)由指定的供应商提供。
|
static TransformService |
TransformService.getInstance(String algorithm, String mechanismType, String provider)
返回一个支持指定URI
TransformService 算法(例如:
Transform.XPATH2 )和机构类型(例如:DOM)由指定的供应商提供。
|
abstract CanonicalizationMethod |
XMLSignatureFactory.newCanonicalizationMethod(String algorithm, C14NMethodParameterSpec params)
创建一个指定的算法和参数
CanonicalizationMethod URI。
|
abstract CanonicalizationMethod |
XMLSignatureFactory.newCanonicalizationMethod(String algorithm, XMLStructure params)
创建一个指定的算法和参数
CanonicalizationMethod URI。
|
abstract DigestMethod |
XMLSignatureFactory.newDigestMethod(String algorithm, DigestMethodParameterSpec params)
创建一个指定的算法和参数
DigestMethod URI。
|
abstract SignatureMethod |
XMLSignatureFactory.newSignatureMethod(String algorithm, SignatureMethodParameterSpec params)
创建一个指定的算法和参数
SignatureMethod URI。
|
abstract Transform |
XMLSignatureFactory.newTransform(String algorithm, TransformParameterSpec params)
创建一个指定的算法和参数
Transform URI。
|
abstract Transform |
XMLSignatureFactory.newTransform(String algorithm, XMLStructure params)
创建一个指定的算法和参数
Transform URI。
|
Submit a bug or feature
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
Copyright © 1993, 2014, Oracle and/or its affiliates. All rights reserved.