Constructor and Description |
---|
PRFParams(String jcaMacAlg,
Provider macProvider,
int dkLen)
Creates a new pseudo-random function parameters instance.
|
Modifier and Type | Method and Description |
---|---|
int |
getDerivedKeyByteLength()
Returns the byte length of the key to derive.
|
String |
getMACAlgorithm()
Returns the JCA MAC algorithm name.
|
Provider |
getMacProvider()
Returns the JCA MAC provider.
|
static PRFParams |
resolve(JWEAlgorithm alg,
Provider macProvider)
Resolves the Pseudo-Random Function (PRF) parameters for the
specified PBES2 JWE algorithm.
|
public PRFParams(String jcaMacAlg, Provider macProvider, int dkLen)
jcaMacAlg
- The JCA MAC algorithm name. Must not be
null
.macProvider
- The JCA MAC provider, null
to use the
default one.dkLen
- The byte length of the key to derive.public String getMACAlgorithm()
public Provider getMacProvider()
null
to use the default one.public int getDerivedKeyByteLength()
public static PRFParams resolve(JWEAlgorithm alg, Provider macProvider) throws JOSEException
alg
- The JWE algorithm. Must be supported and not
null
.macProvider
- The specific MAC JCA provider, null
to
use the default one.JOSEException
- If the JWE algorithm is not supported.Copyright © 2020 Connect2id Ltd.. All rights reserved.