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).
|
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,
org.bouncycastle.asn1.x509.AlgorithmIdentifier parameters)
Constructs a PACE Domain parameter info.
|
PACEDomainParameterInfo(String protocolOID,
org.bouncycastle.asn1.x509.AlgorithmIdentifier domainParameter,
BigInteger parameterId) |
Modifier and Type | Method and Description |
---|---|
static boolean |
checkRequiredIdentifier(String oid) |
boolean |
equals(Object other) |
org.bouncycastle.asn1.ASN1Primitive |
getDERObject()
Deprecated.
|
String |
getObjectIdentifier()
Gets the protocol object identifier of this SecurityInfo.
|
BigInteger |
getParameterId()
Gets the parameter id, or -1 if this is the only domain parameter info.
|
AlgorithmParameterSpec |
getParameters() |
String |
getProtocolOIDString()
Gets the protocol object identifier as a human readable string.
|
int |
hashCode() |
static org.bouncycastle.asn1.x509.AlgorithmIdentifier |
toAlgorithmIdentifier(ECParameterSpec ecParameterSpec)
Deprecated.
Visibility will be restricted
|
static ECParameterSpec |
toECParameterSpec(org.bouncycastle.asn1.x509.AlgorithmIdentifier domainParameter)
Deprecated.
Visibility will be restricted
|
String |
toString() |
getInstance, writeObject
getEncoded
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 static final String ID_EC_PUBLIC_KEY
ecPublicKey OBJECT IDENTIFIER ::= { iso(1) member-body(2) us(840) ansi-x962(10045) keyType(2) 1 }
.public PACEDomainParameterInfo(String protocolOID, org.bouncycastle.asn1.x509.AlgorithmIdentifier parameters)
protocolOID
- Must be @see SecurityInfo.#ID_PACE_DH_GM, @see SecurityInfo.#ID_PACE_ECDH_GM, @see SecurityInfo.#ID_PACE_DH_IM, @see SecurityInfo.#ID_PACE_ECDH_IMparameters
- 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, org.bouncycastle.asn1.x509.AlgorithmIdentifier domainParameter, BigInteger parameterId)
public String getObjectIdentifier()
SecurityInfo
getObjectIdentifier
in class SecurityInfo
public String getProtocolOIDString()
getProtocolOIDString
in class SecurityInfo
public BigInteger getParameterId()
public AlgorithmParameterSpec getParameters()
@Deprecated public org.bouncycastle.asn1.ASN1Primitive getDERObject()
SecurityInfo
getDERObject
in class SecurityInfo
public static boolean checkRequiredIdentifier(String oid)
@Deprecated public static org.bouncycastle.asn1.x509.AlgorithmIdentifier toAlgorithmIdentifier(ECParameterSpec ecParameterSpec)
ecParameterSpec
- the EC parameter spec@Deprecated public static ECParameterSpec toECParameterSpec(org.bouncycastle.asn1.x509.AlgorithmIdentifier domainParameter)
domainParameter
- the BC algorithm identifier objectCopyright © 2017. All rights reserved.