javax.crypto.spec
22 classes of the module java.base.
Load them with:
using {
"javax.crypto.spec"
}
ChaCha20ParameterSpec#
class final · extends Object · javax.crypto.spec.ChaCha20ParameterSpec
Implements: AlgorithmParameterSpec
Constructors
new ChaCha20ParameterSpec(byte[] nonce, int counter) |
Ring: new ChaCha20ParameterSpec(args) uses the constructor with the fewest parameters (at least one); new ChaCha20ParameterSpec makes the object with the constructor without parameters; the others: (new ChaCha20ParameterSpec).@New([ :param = value ]) or .@New([v1,v2]).
Methods
| Method | Ring call | Java overloads |
|---|---|---|
getCounter | getCounter() | int getCounter() |
getNonce | getNonce() | byte[] getNonce() |
The methods and fields of Object are inherited.
DESedeKeySpec#
class · extends Object · javax.crypto.spec.DESedeKeySpec
Implements: KeySpec
Constructors
new DESedeKeySpec(byte[] key) |
new DESedeKeySpec(byte[] key, int offset) |
Ring: new DESedeKeySpec(args) uses the constructor with the fewest parameters (at least one); new DESedeKeySpec makes the object with the constructor without parameters; the others: (new DESedeKeySpec).@New([ :param = value ]) or .@New([v1,v2]).
Fields
| Name | Type | Access | In Ring |
|---|---|---|---|
DES_EDE_KEY_LEN | int | constant · static | o.DES_EDE_KEY_LEN |
Methods
| Method | Ring call | Java overloads |
|---|---|---|
getKey | getKey() | byte[] getKey() |
isParityAdjusted | isParityAdjusted(key,offset) | static boolean isParityAdjusted(byte[] key, int offset) |
The methods and fields of Object are inherited.
DESKeySpec#
class · extends Object · javax.crypto.spec.DESKeySpec
Implements: KeySpec
Constructors
new DESKeySpec(byte[] key) |
new DESKeySpec(byte[] key, int offset) |
Ring: new DESKeySpec(args) uses the constructor with the fewest parameters (at least one); new DESKeySpec makes the object with the constructor without parameters; the others: (new DESKeySpec).@New([ :param = value ]) or .@New([v1,v2]).
Fields
| Name | Type | Access | In Ring |
|---|---|---|---|
DES_KEY_LEN | int | constant · static | o.DES_KEY_LEN |
Methods
| Method | Ring call | Java overloads |
|---|---|---|
getKey | getKey() | byte[] getKey() |
isParityAdjusted | isParityAdjusted(key,offset) | static boolean isParityAdjusted(byte[] key, int offset) |
isWeak | isWeak(key,offset) | static boolean isWeak(byte[] key, int offset) |
The methods and fields of Object are inherited.
DHGenParameterSpec#
class · extends Object · javax.crypto.spec.DHGenParameterSpec
Implements: AlgorithmParameterSpec
Constructors
new DHGenParameterSpec(int primeSize, int exponentSize) |
Ring: new DHGenParameterSpec(args) uses the constructor with the fewest parameters (at least one); new DHGenParameterSpec makes the object with the constructor without parameters; the others: (new DHGenParameterSpec).@New([ :param = value ]) or .@New([v1,v2]).
Methods
| Method | Ring call | Java overloads |
|---|---|---|
getExponentSize | getExponentSize() | int getExponentSize() |
getPrimeSize | getPrimeSize() | int getPrimeSize() |
The methods and fields of Object are inherited.
DHParameterSpec#
class · extends Object · javax.crypto.spec.DHParameterSpec
Implements: AlgorithmParameterSpec
Constructors
new DHParameterSpec(BigInteger p, BigInteger g) |
new DHParameterSpec(BigInteger p, BigInteger g, int l) |
Ring: new DHParameterSpec(args) uses the constructor with the fewest parameters (at least one); new DHParameterSpec makes the object with the constructor without parameters; the others: (new DHParameterSpec).@New([ :param = value ]) or .@New([v1,v2]).
Methods
| Method | Ring call | Java overloads |
|---|---|---|
getG | getG() | BigInteger getG() |
getL | getL() | int getL() |
getP | getP() | BigInteger getP() |
The methods and fields of Object are inherited.
DHPrivateKeySpec#
class · extends Object · javax.crypto.spec.DHPrivateKeySpec
Implements: KeySpec
Constructors
new DHPrivateKeySpec(BigInteger x, BigInteger p, BigInteger g) |
Ring: new DHPrivateKeySpec(args) uses the constructor with the fewest parameters (at least one); new DHPrivateKeySpec makes the object with the constructor without parameters; the others: (new DHPrivateKeySpec).@New([ :param = value ]) or .@New([v1,v2]).
Methods
| Method | Ring call | Java overloads |
|---|---|---|
getG | getG() | BigInteger getG() |
getP | getP() | BigInteger getP() |
getX | getX() | BigInteger getX() |
The methods and fields of Object are inherited.
DHPublicKeySpec#
class · extends Object · javax.crypto.spec.DHPublicKeySpec
Implements: KeySpec
Constructors
new DHPublicKeySpec(BigInteger y, BigInteger p, BigInteger g) |
Ring: new DHPublicKeySpec(args) uses the constructor with the fewest parameters (at least one); new DHPublicKeySpec makes the object with the constructor without parameters; the others: (new DHPublicKeySpec).@New([ :param = value ]) or .@New([v1,v2]).
Methods
| Method | Ring call | Java overloads |
|---|---|---|
getG | getG() | BigInteger getG() |
getP | getP() | BigInteger getP() |
getY | getY() | BigInteger getY() |
The methods and fields of Object are inherited.
GCMParameterSpec#
class · extends Object · javax.crypto.spec.GCMParameterSpec
Implements: AlgorithmParameterSpec
Constructors
new GCMParameterSpec(int tLen, byte[] src) |
new GCMParameterSpec(int tLen, byte[] src, int offset, int len) |
Ring: new GCMParameterSpec(args) uses the constructor with the fewest parameters (at least one); new GCMParameterSpec makes the object with the constructor without parameters; the others: (new GCMParameterSpec).@New([ :param = value ]) or .@New([v1,v2]).
Methods
| Method | Ring call | Java overloads |
|---|---|---|
getIV | getIV() | byte[] getIV() |
getTLen | getTLen() | int getTLen() |
The methods and fields of Object are inherited.
HKDFParameterSpec#
interface · javax.crypto.spec.HKDFParameterSpec
Extends: AlgorithmParameterSpec
Methods
| Method | Ring call | Java overloads |
|---|---|---|
expandOnly | expandOnly(prk,info,length) | static Expand expandOnly(SecretKey prk, byte[] info, int length) |
ofExtract | ofExtract() | static Builder ofExtract() |
HKDFParameterSpecBuilder#
class final · extends Object · javax.crypto.spec.HKDFParameterSpec$Builder
Methods
| Method | Ring call | Java overloads |
|---|---|---|
addIKM | addIKM(ikm) | Builder addIKM(SecretKey ikm)Builder addIKM(byte[] ikm) |
addSalt | addSalt(salt) | Builder addSalt(SecretKey salt)Builder addSalt(byte[] salt) |
extractOnly | extractOnly() | Extract extractOnly() |
thenExpand | thenExpand(info,length) | ExtractThenExpand thenExpand(byte[] info, int length) |
The methods and fields of Object are inherited.
HKDFParameterSpecExpand#
class final · extends Object · javax.crypto.spec.HKDFParameterSpec$Expand
Implements: HKDFParameterSpec
Methods
| Method | Ring call | Java overloads |
|---|---|---|
info | info() | byte[] info() |
length | length() | int length() |
prk | prk() | SecretKey prk() |
The methods and fields of Object are inherited.
HKDFParameterSpecExtract#
class final · extends Object · javax.crypto.spec.HKDFParameterSpec$Extract
Implements: HKDFParameterSpec
Methods
| Method | Ring call | Java overloads |
|---|---|---|
ikms | ikms() | List ikms() |
salts | salts() | List salts() |
The methods and fields of Object are inherited.
HKDFParameterSpecExtractThenExpand#
class final · extends Object · javax.crypto.spec.HKDFParameterSpec$ExtractThenExpand
Implements: HKDFParameterSpec
Methods
| Method | Ring call | Java overloads |
|---|---|---|
ikms | ikms() | List ikms() |
info | info() | byte[] info() |
length | length() | int length() |
salts | salts() | List salts() |
The methods and fields of Object are inherited.
IvParameterSpec#
class · extends Object · javax.crypto.spec.IvParameterSpec
Implements: AlgorithmParameterSpec
Constructors
new IvParameterSpec(byte[] iv) |
new IvParameterSpec(byte[] iv, int offset, int len) |
Ring: new IvParameterSpec(args) uses the constructor with the fewest parameters (at least one); new IvParameterSpec makes the object with the constructor without parameters; the others: (new IvParameterSpec).@New([ :param = value ]) or .@New([v1,v2]).
Methods
| Method | Ring call | Java overloads |
|---|---|---|
getIV | getIV() | byte[] getIV() |
The methods and fields of Object are inherited.
OAEPParameterSpec#
class · extends Object · javax.crypto.spec.OAEPParameterSpec
Implements: AlgorithmParameterSpec
Constructors
new OAEPParameterSpec(String mdName, String mgfName, AlgorithmParameterSpec mgfSpec, PSource pSrc) |
Ring: new OAEPParameterSpec(args) uses the constructor with the fewest parameters (at least one); new OAEPParameterSpec makes the object with the constructor without parameters; the others: (new OAEPParameterSpec).@New([ :param = value ]) or .@New([v1,v2]).
Fields
| Name | Type | Access | In Ring |
|---|---|---|---|
DEFAULT | OAEPParameterSpec | constant · static | o.DEFAULT |
Methods
| Method | Ring call | Java overloads |
|---|---|---|
getDigestAlgorithm | getDigestAlgorithm() | String getDigestAlgorithm() |
getMGFAlgorithm | getMGFAlgorithm() | String getMGFAlgorithm() |
getMGFParameters | getMGFParameters() | AlgorithmParameterSpec getMGFParameters() |
getPSource | getPSource() | PSource getPSource() |
The methods and fields of Object are inherited.
PBEKeySpec#
class · extends Object · javax.crypto.spec.PBEKeySpec
Implements: KeySpec
Constructors
new PBEKeySpec(char[] password) |
new PBEKeySpec(char[] password, byte[] salt, int iterationCount) |
new PBEKeySpec(char[] password, byte[] salt, int iterationCount, int keyLength) |
Ring: new PBEKeySpec(args) uses the constructor with the fewest parameters (at least one); new PBEKeySpec makes the object with the constructor without parameters; the others: (new PBEKeySpec).@New([ :param = value ]) or .@New([v1,v2]).
Methods
| Method | Ring call | Java overloads |
|---|---|---|
clearPassword | clearPassword() | void clearPassword() |
getIterationCount | getIterationCount() | int getIterationCount() |
getKeyLength | getKeyLength() | int getKeyLength() |
getPassword | getPassword() | char[] getPassword() |
getSalt | getSalt() | byte[] getSalt() |
The methods and fields of Object are inherited.
PBEParameterSpec#
class · extends Object · javax.crypto.spec.PBEParameterSpec
Implements: AlgorithmParameterSpec
Constructors
new PBEParameterSpec(byte[] salt, int iterationCount) |
new PBEParameterSpec(byte[] salt, int iterationCount, AlgorithmParameterSpec paramSpec) |
Ring: new PBEParameterSpec(args) uses the constructor with the fewest parameters (at least one); new PBEParameterSpec makes the object with the constructor without parameters; the others: (new PBEParameterSpec).@New([ :param = value ]) or .@New([v1,v2]).
Methods
| Method | Ring call | Java overloads |
|---|---|---|
getIterationCount | getIterationCount() | int getIterationCount() |
getParameterSpec | getParameterSpec() | AlgorithmParameterSpec getParameterSpec() |
getSalt | getSalt() | byte[] getSalt() |
The methods and fields of Object are inherited.
PSource#
class · extends Object · javax.crypto.spec.PSource
Methods
| Method | Ring call | Java overloads |
|---|---|---|
getAlgorithm | getAlgorithm() | String getAlgorithm() |
The methods and fields of Object are inherited.
PSourcePSpecified#
class final · extends PSource · javax.crypto.spec.PSource$PSpecified
Constructors
new PSourcePSpecified(byte[] p) |
Ring: new PSourcePSpecified(args) uses the constructor with the fewest parameters (at least one); new PSourcePSpecified makes the object with the constructor without parameters; the others: (new PSourcePSpecified).@New([ :param = value ]) or .@New([v1,v2]).
Fields
| Name | Type | Access | In Ring |
|---|---|---|---|
DEFAULT | PSpecified | constant · static | o.DEFAULT |
Methods
| Method | Ring call | Java overloads |
|---|---|---|
getValue | getValue() | byte[] getValue() |
The methods and fields of PSource are inherited.
RC2ParameterSpec#
class · extends Object · javax.crypto.spec.RC2ParameterSpec
Implements: AlgorithmParameterSpec
Constructors
new RC2ParameterSpec(int effectiveKeyBits) |
new RC2ParameterSpec(int effectiveKeyBits, byte[] iv) |
new RC2ParameterSpec(int effectiveKeyBits, byte[] iv, int offset) |
Ring: new RC2ParameterSpec(args) uses the constructor with the fewest parameters (at least one); new RC2ParameterSpec makes the object with the constructor without parameters; the others: (new RC2ParameterSpec).@New([ :param = value ]) or .@New([v1,v2]).
Methods
| Method | Ring call | Java overloads |
|---|---|---|
getEffectiveKeyBits | getEffectiveKeyBits() | int getEffectiveKeyBits() |
getIV | getIV() | byte[] getIV() |
The methods and fields of Object are inherited.
RC5ParameterSpec#
class · extends Object · javax.crypto.spec.RC5ParameterSpec
Implements: AlgorithmParameterSpec
Constructors
new RC5ParameterSpec(int version, int rounds, int wordSize) |
new RC5ParameterSpec(int version, int rounds, int wordSize, byte[] iv) |
new RC5ParameterSpec(int version, int rounds, int wordSize, byte[] iv, int offset) |
Ring: new RC5ParameterSpec(args) uses the constructor with the fewest parameters (at least one); new RC5ParameterSpec makes the object with the constructor without parameters; the others: (new RC5ParameterSpec).@New([ :param = value ]) or .@New([v1,v2]).
Methods
| Method | Ring call | Java overloads |
|---|---|---|
getIV | getIV() | byte[] getIV() |
getRounds | getRounds() | int getRounds() |
getVersion | getVersion() | int getVersion() |
getWordSize | getWordSize() | int getWordSize() |
The methods and fields of Object are inherited.
SecretKeySpec#
class · extends Object · javax.crypto.spec.SecretKeySpec
Implements: KeySpec, SecretKey
Constructors
new SecretKeySpec(byte[] key, String algorithm) |
new SecretKeySpec(byte[] key, int offset, int len, String algorithm) |
Ring: new SecretKeySpec(args) uses the constructor with the fewest parameters (at least one); new SecretKeySpec makes the object with the constructor without parameters; the others: (new SecretKeySpec).@New([ :param = value ]) or .@New([v1,v2]).
Fields
| Name | Type | Access | In Ring |
|---|---|---|---|
serialVersionUID | long | constant · static | o.serialVersionUID |
Methods
| Method | Ring call | Java overloads |
|---|---|---|
destroy | destroy() | void destroy() |
getAlgorithm | getAlgorithm() | String getAlgorithm() |
getEncoded | getEncoded() | byte[] getEncoded() |
getFormat | getFormat() | String getFormat() |
isDestroyed | isDestroyed() | boolean isDestroyed() |
The methods and fields of Object are inherited.