public class PACEInfo extends SecurityInfo
Modifier and Type | Class and Description |
---|---|
static class |
PACEInfo.DHCParameterSpec
A DH parameter specification which also keeps track of
the prime order of the subgroup generated by the generator.
|
static class |
PACEInfo.MappingType
Generic mapping and Integrated mapping and CAM mapping.
|
Modifier and Type | Field and Description |
---|---|
static int |
PARAM_ID_ECP_BRAINPOOL_P192_R1
Standardized domain parameters.
|
static int |
PARAM_ID_ECP_BRAINPOOL_P224_R1
Standardized domain parameters.
|
static int |
PARAM_ID_ECP_BRAINPOOL_P256_R1
Standardized domain parameters.
|
static int |
PARAM_ID_ECP_BRAINPOOL_P320_R1
Standardized domain parameters.
|
static int |
PARAM_ID_ECP_BRAINPOOL_P384_R1
Standardized domain parameters.
|
static int |
PARAM_ID_ECP_BRAINPOOL_P512_R1
Standardized domain parameters.
|
static int |
PARAM_ID_ECP_NIST_P192_R1
Standardized domain parameters.
|
static int |
PARAM_ID_ECP_NIST_P224_R1
Standardized domain parameters.
|
static int |
PARAM_ID_ECP_NIST_P256_R1
Standardized domain parameters.
|
static int |
PARAM_ID_ECP_NIST_P384_R1
Standardized domain parameters.
|
static int |
PARAM_ID_ECP_NIST_P521_R1
Standardized domain parameters.
|
static int |
PARAM_ID_GFP_1024_160
Standardized domain parameters.
|
static int |
PARAM_ID_GFP_2048_224
Standardized domain parameters.
|
static int |
PARAM_ID_GFP_2048_256
Standardized domain parameters.
|
ID_AA, ID_CA_DH_3DES_CBC_CBC, ID_CA_DH_AES_CBC_CMAC_128, ID_CA_DH_AES_CBC_CMAC_192, ID_CA_DH_AES_CBC_CMAC_256, ID_CA_ECDH_3DES_CBC_CBC, ID_CA_ECDH_AES_CBC_CMAC_128, ID_CA_ECDH_AES_CBC_CMAC_192, ID_CA_ECDH_AES_CBC_CMAC_256, ID_EC_PUBLIC_KEY, ID_EC_PUBLIC_KEY_TYPE, ID_PACE, ID_PACE_DH_GM, ID_PACE_DH_GM_3DES_CBC_CBC, ID_PACE_DH_GM_AES_CBC_CMAC_128, ID_PACE_DH_GM_AES_CBC_CMAC_192, ID_PACE_DH_GM_AES_CBC_CMAC_256, ID_PACE_DH_IM, ID_PACE_DH_IM_3DES_CBC_CBC, ID_PACE_DH_IM_AES_CBC_CMAC_128, ID_PACE_DH_IM_AES_CBC_CMAC_192, ID_PACE_DH_IM_AES_CBC_CMAC_256, ID_PACE_ECDH_CAM, ID_PACE_ECDH_CAM_AES_CBC_CMAC_128, ID_PACE_ECDH_CAM_AES_CBC_CMAC_192, ID_PACE_ECDH_CAM_AES_CBC_CMAC_256, ID_PACE_ECDH_GM, ID_PACE_ECDH_GM_3DES_CBC_CBC, ID_PACE_ECDH_GM_AES_CBC_CMAC_128, ID_PACE_ECDH_GM_AES_CBC_CMAC_192, ID_PACE_ECDH_GM_AES_CBC_CMAC_256, ID_PACE_ECDH_IM, ID_PACE_ECDH_IM_3DES_CBC_CBC, ID_PACE_ECDH_IM_AES_CBC_CMAC_128, ID_PACE_ECDH_IM_AES_CBC_CMAC_192, ID_PACE_ECDH_IM_AES_CBC_CMAC_256, ID_PK_DH, ID_PK_ECDH, ID_TA, ID_TA_ECDSA, ID_TA_ECDSA_SHA_1, ID_TA_ECDSA_SHA_224, ID_TA_ECDSA_SHA_256, ID_TA_RSA, ID_TA_RSA_PSS_SHA_1, ID_TA_RSA_PSS_SHA_256, ID_TA_RSA_V1_5_SHA_1, ID_TA_RSA_V1_5_SHA_256
Constructor and Description |
---|
PACEInfo(String oid,
int version,
BigInteger parameterId)
Creates a PACE info object.
|
PACEInfo(String oid,
int version,
int parameterId)
Constructs a PACE info object.
|
Modifier and Type | Method and Description |
---|---|
static boolean |
checkRequiredIdentifier(String oid)
Checks whether the object identifier is valid for describing a PACE protocol.
|
static PACEInfo |
createPACEInfo(byte[] paceInfoBytes)
Creates a PACE info from an encoding.
|
boolean |
equals(Object other) |
ASN1Primitive |
getDERObject()
Deprecated.
this method will be removed from visible interface (because of dependency on BC API)
|
String |
getObjectIdentifier()
Returns the PACE protocol object identifier.
|
BigInteger |
getParameterId()
Returns the parameter identifier.
|
String |
getProtocolOIDString()
Returns the protocol object identifier as a human readable string.
|
int |
getVersion()
Returns the version.
|
int |
hashCode() |
static String |
toCipherAlgorithm(String oid)
Returns the encryption algorithm described in the PACE protocol object identifier.
|
static String |
toDigestAlgorithm(String oid)
Returns the digest algorithm described in the PACE protocol object identifier.
|
static String |
toKeyAgreementAlgorithm(String oid)
Returns the key agreement algorithm (
"DH" or "ECDH" )
for a PACE protocol object identifier. |
static int |
toKeyLength(String oid)
Returns the key length (128, 192, or 256) described in the given PACE protocol object identifier.
|
static PACEInfo.MappingType |
toMappingType(String oid)
Returns the mapping type for a given PACE protocol object identifier.
|
static AlgorithmParameterSpec |
toParameterSpec(BigInteger stdDomainParam)
Derives a JCE algorithm parameter specification from a PACE standard domain parameter integer.
|
static AlgorithmParameterSpec |
toParameterSpec(int stdDomainParam)
Derives a JCE algorithm parameter specification from a PACE standard domain parameter integer.
|
static String |
toStandardizedParamIdString(BigInteger stdDomainParam)
Derives a human readable algorithm description from a PACE standard domain parameter integer.
|
String |
toString() |
getInstance, writeObject
getEncoded
public static final int PARAM_ID_GFP_1024_160
public static final int PARAM_ID_GFP_2048_224
public static final int PARAM_ID_GFP_2048_256
public static final int PARAM_ID_ECP_NIST_P192_R1
public static final int PARAM_ID_ECP_BRAINPOOL_P192_R1
public static final int PARAM_ID_ECP_NIST_P224_R1
public static final int PARAM_ID_ECP_BRAINPOOL_P224_R1
public static final int PARAM_ID_ECP_NIST_P256_R1
public static final int PARAM_ID_ECP_BRAINPOOL_P256_R1
public static final int PARAM_ID_ECP_BRAINPOOL_P320_R1
public static final int PARAM_ID_ECP_NIST_P384_R1
public static final int PARAM_ID_ECP_BRAINPOOL_P384_R1
public static final int PARAM_ID_ECP_BRAINPOOL_P512_R1
public static final int PARAM_ID_ECP_NIST_P521_R1
public PACEInfo(String oid, int version, int parameterId)
oid
- the object identifier, indicating what PACE variant
is to be used (agreement protocol, mapping type, and secure channel properties)version
- a version number, which should be 2parameterId
- either a standardized domain parameter id from table 6 or a proprietary domain parameterpublic PACEInfo(String oid, int version, BigInteger parameterId)
oid
- the object identifier, indicating what PACE variant
is to be used (agreement protocol, mapping type, and secure channel properties)version
- a version number, which should be 2parameterId
- either a standardized domain parameter id from table 6 or a proprietary domain parameterpublic static PACEInfo createPACEInfo(byte[] paceInfoBytes)
paceInfoBytes
- the encoded bytespublic String getObjectIdentifier()
getObjectIdentifier
in class SecurityInfo
public String getProtocolOIDString()
getProtocolOIDString
in class SecurityInfo
public int getVersion()
public BigInteger getParameterId()
@Deprecated public ASN1Primitive getDERObject()
getDERObject
in class SecurityInfo
public static boolean checkRequiredIdentifier(String oid)
oid
- a PACE object identifierpublic static PACEInfo.MappingType toMappingType(String oid)
oid
- a PACE protocol object identifierpublic static String toKeyAgreementAlgorithm(String oid)
"DH"
or "ECDH"
)
for a PACE protocol object identifier.oid
- a PACE protocol object identifierpublic static String toCipherAlgorithm(String oid)
oid
- the PACE protocol object identifierpublic static String toDigestAlgorithm(String oid)
oid
- the PACE protocol object identifierpublic static int toKeyLength(String oid)
oid
- a PACE protocol object identifierpublic static AlgorithmParameterSpec toParameterSpec(BigInteger stdDomainParam)
stdDomainParam
- the standard domain parameterpublic static AlgorithmParameterSpec toParameterSpec(int stdDomainParam)
stdDomainParam
- the standard domain parameterpublic static String toStandardizedParamIdString(BigInteger stdDomainParam)
stdDomainParam
- the standard domain parameterCopyright © 2021. All rights reserved.