软件包 | 描述 |
---|---|
java.security |
为安全框架提供类和接口。
|
java.security.interfaces |
生成RSA(Rivest,夏米尔提供的接口和Adleman AsymmetricCipher算法)键在RSA实验室的技术说明和# 1定义,与DSA(数字签名算法)键在NIST的fips-186定义。
|
javax.crypto |
提供加密操作的类和接口。
|
javax.net.ssl |
为安全套接字包提供类。
|
Modifier and Type | Field and Description |
---|---|
protected SecureRandom |
SignatureSpi.appRandom
应用指定的随机源。
|
Modifier and Type | Method and Description |
---|---|
static SecureRandom |
SecureRandom.getInstance(String algorithm)
返回一个实现指定随机数发生器(RNG)算法提供的对象。
|
static SecureRandom |
SecureRandom.getInstance(String algorithm, Provider provider)
返回一个实现指定随机数发生器(RNG)算法提供的对象。
|
static SecureRandom |
SecureRandom.getInstance(String algorithm, String provider)
返回一个实现指定随机数发生器(RNG)算法提供的对象。
|
static SecureRandom |
SecureRandom.getInstanceStrong()
|
Modifier and Type | Method and Description |
---|---|
protected abstract void |
AlgorithmParameterGeneratorSpi.engineInit(AlgorithmParameterSpec genParamSpec, SecureRandom random)
一套算法的具体参数值初始化参数发电机发电。
|
protected abstract void |
AlgorithmParameterGeneratorSpi.engineInit(int size, SecureRandom random)
初始化参数发生器一定尺寸和随机源。
|
protected void |
SignatureSpi.engineInitSign(PrivateKey privateKey, SecureRandom random)
用指定的密钥和随机源签名操作初始化这个签名对象。
|
void |
AlgorithmParameterGenerator.init(AlgorithmParameterSpec genParamSpec, SecureRandom random)
一套算法的具体参数值初始化参数发电机发电。
|
void |
AlgorithmParameterGenerator.init(int size, SecureRandom random)
初始化参数发生器一定尺寸和随机源。
|
void |
KeyPairGenerator.initialize(AlgorithmParameterSpec params, SecureRandom random)
与给定的参数集和随机源初始化密钥发生器。
|
void |
KeyPairGeneratorSpi.initialize(AlgorithmParameterSpec params, SecureRandom random)
初始化密钥发生器使用指定的参数设置和用户提供的随机源。
|
void |
KeyPairGenerator.initialize(int keysize, SecureRandom random)
初始化为随机给定的源特定的密钥大小的密钥生成器(和默认参数设置)。
|
abstract void |
KeyPairGeneratorSpi.initialize(int keysize, SecureRandom random)
初始化某个指定密钥长度的密钥对生成,使用默认的参数设置。
|
void |
Signature.initSign(PrivateKey privateKey, SecureRandom random)
初始化此对象的签名。
|
Modifier and Type | Method and Description |
---|---|
void |
DSAKeyPairGenerator.initialize(DSAParams params, SecureRandom random)
初始化密钥发生器采用DSA参数(P,Q家族和G)和一个可选的提供的点源。
|
void |
DSAKeyPairGenerator.initialize(int modlen, boolean genParams, SecureRandom random)
初始化给定模数长度的密钥生成器(而不是参数),和一个可选的提供的点源。
|
Modifier and Type | Method and Description |
---|---|
protected abstract void |
KeyGeneratorSpi.engineInit(AlgorithmParameterSpec params, SecureRandom random)
用指定的参数设置和用户提供的随机源初始化密钥生成器。
|
protected abstract void |
CipherSpi.engineInit(int opmode, Key key, AlgorithmParameterSpec params, SecureRandom random)
一个关键的初始化这个密码,一组算法参数,和一个随机源。
|
protected abstract void |
CipherSpi.engineInit(int opmode, Key key, AlgorithmParameters params, SecureRandom random)
一个关键的初始化这个密码,一组算法参数,和一个随机源。
|
protected abstract void |
CipherSpi.engineInit(int opmode, Key key, SecureRandom random)
用钥匙和随机源初始化这个密码。
|
protected abstract void |
KeyGeneratorSpi.engineInit(int keysize, SecureRandom random)
初始化这个密钥生成一定的密钥大小,使用随机给定的源。
|
protected abstract void |
KeyAgreementSpi.engineInit(Key key, AlgorithmParameterSpec params, SecureRandom random)
初始化密钥协商与给定的键,设置算法参数,并随机源。
|
protected abstract void |
KeyAgreementSpi.engineInit(Key key, SecureRandom random)
初始化密钥协商的密钥和随机源。
|
protected abstract void |
KeyGeneratorSpi.engineInit(SecureRandom random)
初始化密钥生成器。
|
void |
KeyGenerator.init(AlgorithmParameterSpec params, SecureRandom random)
用指定的参数设置和用户提供的随机源初始化这个密钥生成器。
|
void |
Cipher.init(int opmode, Certificate certificate, SecureRandom random)
从给定的证书和一个随机源的公共密钥初始化这个密码。
|
void |
Cipher.init(int opmode, Key key, AlgorithmParameterSpec params, SecureRandom random)
一个关键的初始化这个密码,一组算法参数,和一个随机源。
|
void |
Cipher.init(int opmode, Key key, AlgorithmParameters params, SecureRandom random)
一个关键的初始化这个密码,一组算法参数,和一个随机源。
|
void |
Cipher.init(int opmode, Key key, SecureRandom random)
用钥匙和随机源初始化这个密码。
|
void |
KeyGenerator.init(int keysize, SecureRandom random)
初始化这个密钥生成一定的密钥大小,使用用户提供的随机源。
|
void |
KeyAgreement.init(Key key, AlgorithmParameterSpec params, SecureRandom random)
初始化密钥协商与给定的键,设置算法参数,并随机源。
|
void |
KeyAgreement.init(Key key, SecureRandom random)
初始化密钥协商的密钥和随机源。
|
void |
KeyGenerator.init(SecureRandom random)
初始化这个密钥生成器。
|
Modifier and Type | Method and Description |
---|---|
protected abstract void |
SSLContextSpi.engineInit(KeyManager[] km, TrustManager[] tm, SecureRandom sr)
初始化上下文。
|
void |
SSLContext.init(KeyManager[] km, TrustManager[] tm, SecureRandom random)
初始化上下文。
|
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.