public class PACEDomainParameterInfo extends SecurityInfo
dhpublicnumber OBJECT IDENTIFIER ::= { iso(1) member-body(2) us(840) ansi-x942(10046) number-type(2) 1 }
ecPublicKey OBJECT IDENTIFIER ::= { iso(1) member-body(2) us(840) ansi-x962(10045) keyType(2) 1 }In the case of elliptic curves, domain parameters MUST be described explicitly in the ECParameters structure, contained as parameters in the AlgorithmIdentifier, i.e. named curves and implicit domain parameters MUST NOT be used.
Modifier and Type | Field and Description |
---|---|
static String |
ID_DH_PUBLIC_NUMBER
Value for parameter algorithm OID (part of parameters AlgorithmIdentifier).
|
static String |
ID_EC_PUBLIC_KEY
Value for parameter algorithm OID (part of parameters AlgorithmIdentifier).
|
static String |
ID_PRIME_FIELD
Value for parameter algorithm OID (part of parameters AlgorithmIdentifier).
|
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_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 |
---|
PACEDomainParameterInfo(String protocolOID,
AlgorithmIdentifier domainParameter)
Constructs a PACE domain parameter info structure.
|
PACEDomainParameterInfo(String protocolOID,
AlgorithmIdentifier domainParameter,
BigInteger parameterId)
Constructs a PACE domain parameter info structure.
|
Modifier and Type | Method and Description |
---|---|
static boolean |
checkRequiredIdentifier(String oid)
Checks whether the object identifier is an allowed PACE related object identifier.
|
boolean |
equals(Object other) |
ASN1Primitive |
getDERObject()
Deprecated.
Remove this method from visible interface (because of dependency on BC API)
|
String |
getObjectIdentifier()
Returns the protocol object identifier of this SecurityInfo.
|
BigInteger |
getParameterId()
Returns the parameter id, or
null if this is the only domain parameter info. |
AlgorithmParameterSpec |
getParameters()
Gets the parameters in the form of algorithm identifier
with algorithm 1.2.840.10046.2.1 (DH public number)
or 1.2.840.10045.2.1 (EC public key).
|
String |
getProtocolOIDString()
Returns the protocol object identifier as a human readable string.
|
int |
hashCode() |
static AlgorithmIdentifier |
toAlgorithmIdentifier(ECParameterSpec ecParameterSpec)
Deprecated.
Visibility will be restricted
|
static ECParameterSpec |
toECParameterSpec(AlgorithmIdentifier domainParameter)
Deprecated.
Visibility will be restricted
|
String |
toString() |
getInstance, writeObject
getEncoded
public static final String ID_PRIME_FIELD
public static final String ID_EC_PUBLIC_KEY
ecPublicKey OBJECT IDENTIFIER ::= { iso(1) member-body(2) us(840) ansi-x962(10045) keyType(2) 1 }
.public static final String ID_DH_PUBLIC_NUMBER
dhpublicnumber OBJECT IDENTIFIER ::= { iso(1) member-body(2) us(840) ansi-x942(10046) number-type(2) 1 }
.public PACEDomainParameterInfo(String protocolOID, AlgorithmIdentifier domainParameter)
protocolOID
- must be SecurityInfo.ID_PACE_DH_GM
, SecurityInfo.ID_PACE_ECDH_GM
,
SecurityInfo.ID_PACE_DH_IM
, SecurityInfo.ID_PACE_ECDH_IM
domainParameter
- parameters in the form of algorithm identifier with algorithm
1.2.840.10046.2.1 (DH public number) or 1.2.840.10045.2.1 (EC public key)public PACEDomainParameterInfo(String protocolOID, AlgorithmIdentifier domainParameter, BigInteger parameterId)
protocolOID
- must be SecurityInfo.ID_PACE_DH_GM
, SecurityInfo.ID_PACE_ECDH_GM
,
SecurityInfo.ID_PACE_DH_IM
, SecurityInfo.ID_PACE_ECDH_IM
domainParameter
- parameters in the form of algorithm identifier with algorithm
1.2.840.10046.2.1 (DH public number) or 1.2.840.10045.2.1 (EC public key)parameterId
- an identifier to identify this infopublic String getObjectIdentifier()
SecurityInfo
getObjectIdentifier
in class SecurityInfo
public String getProtocolOIDString()
getProtocolOIDString
in class SecurityInfo
public BigInteger getParameterId()
null
if this is the only domain parameter info.null
public AlgorithmParameterSpec getParameters()
@Deprecated public ASN1Primitive getDERObject()
SecurityInfo
data (DER sequence).getDERObject
in class SecurityInfo
SecurityInfo
datapublic static boolean checkRequiredIdentifier(String oid)
oid
- a string representing an object identifier@Deprecated public static AlgorithmIdentifier toAlgorithmIdentifier(ECParameterSpec ecParameterSpec)
ecParameterSpec
- the EC parameter spec@Deprecated public static ECParameterSpec toECParameterSpec(AlgorithmIdentifier domainParameter)
domainParameter
- the BC algorithm identifier objectCopyright © 2018. All rights reserved.