public class EntrustAlgorithmCapabilityList extends java.lang.Object implements ASN1Type
AlgorithmCapabilityListBitString, as defined by Entrust.
This structure is used by the client in a PKIX-CMP transaction to indicate the algorithms it supports for use in PKIX-CMP to the server. Compliant clients must include this structure in the header of every PKIX-CMP message as a general information component. Java Toolkit 8.0 and later always provides an algorithm capability list.
The purpose of the algorithm capability list is to allow the client and server to communicate using a set of algorithms supported by both parties. A compliant server will always communicate using only algorithms indicated as supported by the client. If however the client does not support any algorithms that the server considers adequate, an error will be returned indicating the problem. If the client does not provide an algorithm capability list, the server will consider the client old and assume an algorithm capability list known to be commonly supported by old clients.
When provided, the algorithm capability list indicates the following:
Note: The 0th bit will never be set and can always be ignored.
AlgorithmCapabilityListBitString ::= BIT STRING {
invalid (0)
,ecdsa-sha1 (1)
,ecdsa-sha224 (2)
,ecdsa-sha256 (3)
,ecdsa-sha384 (4)
,ecdsa-sha512 (5)
,rsapss-sha1 (6)
,rsapss-sha224 (7)
,rsapss-sha256 (8)
,rsapss-sha384 (9)
,rsapss-sha512 (10)
,rsa-md2 (11)
,rsa-md5 (12)
,rsa-sha1 (13)
,rsa-sha224 (14)
,rsa-sha256 (15)
,rsa-sha384 (16)
,rsa-sha512 (17)
,dsa-sha1 (18)
,tripledes-dac-192 (19)
,hmac-sha1 (20)
,hmac-sha224 (21)
,hmac-sha256 (22)
,hmac-sha384 (23)
,hmac-sha512 (24)
,aes-cbc-128 (25)
,aes-cbc-192 (26)
,aes-cbc-256 (27)
,aes-gcm-128 (28)
,aes-gcm-192 (29)
,aes-gcm-256 (30)
,tripledes-cbc-192 (31)
,cast5-cbc-80 (32)
,cast5-cbc-128 (33)
,hmac-kdf-entrustpbkdf (34)
,hmac-kdf-rfc4210-rfc4211(35)
,ecdh-x963sha1 (36)
,ecdh-x963sha256 (37)
}
entrustAlgorithmCapabilityList OBJECT-TYPE
SYNTAX AlgorithmCapabilityListBitString
ACCESS read-write
STATUS mandatory
::= { 2 16 840 1 114027 50 19 }
| Modifier and Type | Field and Description |
|---|---|
static ObjectID |
oid
The object identifier for
EntrustAlgorithmCapabilityList. |
| Constructor and Description |
|---|
EntrustAlgorithmCapabilityList(ASN1Object obj)
Creates a new
EntrustAlgorithmCapabilityList from an
ASN1Object. |
EntrustAlgorithmCapabilityList(BinaryString entrustAlgorithmCapabilityList)
Creates a new
EntrustAlgorithmCapabilityList. |
| Modifier and Type | Method and Description |
|---|---|
void |
decode(ASN1Object obj)
Decodes an
EntrustAlgorithmCapabilityList from an
ASN1Object. |
BinaryString |
getEntrustAlgorithmCapabilityList()
Returns the Entrust algorithm capability list value.
|
boolean |
isAesCbc128Supported()
Indicates whether or not the sender supports the
aes-cbc-128
algorithm. |
boolean |
isAesCbc192Supported()
Indicates whether or not the sender supports the
aes-cbc-192
algorithm. |
boolean |
isAesCbc256Supported()
Indicates whether or not the sender supports the
aes-cbc-256
algorithm. |
boolean |
isAesGcm128Supported()
Indicates whether or not the sender supports the
aes-gcm-128
algorithm. |
boolean |
isAesGcm192Supported()
Indicates whether or not the sender supports the
aes-gcm-192
algorithm. |
boolean |
isAesGcm256Supported()
Indicates whether or not the sender supports the
aes-gcm-256
algorithm. |
boolean |
isCast5Cbc128Supported()
Indicates whether or not the sender supports the
cast5-cbc-128 algorithm. |
boolean |
isCast5Cbc80Supported()
Indicates whether or not the sender supports the
cast5-cbc-80 algorithm. |
boolean |
isDsaSha1Supported()
Indicates whether or not the sender supports the
dsa-sha1
algorithm. |
boolean |
isEcdhX963Sha1Supported()
Indicates whether or not the sender supports the
ecdh-x963sha1 algorithm. |
boolean |
isEcdhX963Sha256Supported()
Indicates whether or not the sender supports the
ecdh-x963sha256 algorithm. |
boolean |
isEcdsaSha1Supported()
Indicates whether or not the sender supports the
ecdsa-sha1
algorithm. |
boolean |
isEcdsaSha224Supported()
Indicates whether or not the sender supports the
ecdsa-sha224 algorithm. |
boolean |
isEcdsaSha256Supported()
Indicates whether or not the sender supports the
ecdsa-sha256 algorithm. |
boolean |
isEcdsaSha384upported()
Indicates whether or not the sender supports the
ecdsa-sha384 algorithm. |
boolean |
isEcdsaSha512Supported()
Indicates whether or not the sender supports the
ecdsa-sha512 algorithm. |
boolean |
isHmacKdfEntrustPbkdfSupported()
Indicates whether or not the sender supports the
hmac-kdf-entrustpbkdf algorithm. |
boolean |
isHmacKdfRfc4210Rfc4211Supported()
Indicates whether or not the sender supports the
hmac-kdf-rfc4210-rfc4211 algorithm. |
boolean |
isHmacSha1Supported()
Indicates whether or not the sender supports the
hmac-sha1
algorithm. |
boolean |
isHmacSha224Supported()
Indicates whether or not the sender supports the
hmac-sha224
algorithm. |
boolean |
isHmacSha256Supported()
Indicates whether or not the sender supports the
hmac-sha256
algorithm. |
boolean |
isHmacSha384Supported()
Indicates whether or not the sender supports the
hmac-sha384
algorithm. |
boolean |
isHmacSha512Supported()
Indicates whether or not the sender supports the
hmac-sha512
algorithm. |
boolean |
isRsaMd2Supported()
Indicates whether or not the sender supports the
rsa-md2
algorithm. |
boolean |
isRsaMd5Supported()
Indicates whether or not the sender supports the
rsa-md5
algorithm. |
boolean |
isRsaPssSha1Supported()
Indicates whether or not the sender supports the
rsapss-sha1
algorithm. |
boolean |
isRsaPssSha224Supported()
Indicates whether or not the sender supports the
rsapss-sha224 algorithm. |
boolean |
isRsaPssSha256Supported()
Indicates whether or not the sender supports the
rsapss-sha256 algorithm. |
boolean |
isRsaPssSha384Supported()
Indicates whether or not the sender supports the
rsapss-sha384 algorithm. |
boolean |
isRsaPssSha512Supported()
Indicates whether or not the sender supports the
rsapss-sha512 algorithm. |
boolean |
isRsaSha1Supported()
Indicates whether or not the sender supports the
rsa-sha1
algorithm. |
boolean |
isRsaSha224Supported()
Indicates whether or not the sender supports the
rsa-sha224
algorithm. |
boolean |
isRsaSha256Supported()
Indicates whether or not the sender supports the
rsa-sha256
algorithm. |
boolean |
isRsaSha384Supported()
Indicates whether or not the sender supports the
rsa-sha384
algorithm. |
boolean |
isRsaSha512Supported()
Indicates whether or not the sender supports the
rsa-sha512
algorithm. |
boolean |
isTripleDesCbc192Supported()
Indicates whether or not the sender supports the
tripledes-cbc-192 algorithm. |
boolean |
isTripleDesDac192Supported()
Indicates whether or not the sender supports the
tripledes-dac-192 algorithm. |
void |
setEntrustAlgorithmCapabilityList(BinaryString entrustAlgorithmCapabilityList)
Sets the Entrust algorithm capability list value.
|
ASN1Object |
toASN1Object()
Encodes this
EntrustAlgorithmCapabilityList object as an
ASN1Object. |
java.lang.String |
toString()
Creates a text representation of the ASN.1 structure of this
EntrustCapabilityList object. |
public static final ObjectID oid
EntrustAlgorithmCapabilityList.public EntrustAlgorithmCapabilityList(BinaryString entrustAlgorithmCapabilityList)
EntrustAlgorithmCapabilityList.entrustAlgorithmCapabilityList - the Entrust algorithm capability list valuejava.lang.IllegalArgumentException - if the parameter is nullpublic EntrustAlgorithmCapabilityList(ASN1Object obj) throws CodingException
EntrustAlgorithmCapabilityList from an
ASN1Object. The ASN1Object must be an
AlgorithmCapabilityListBitString structure.obj - the ASN.1 representation of an
AlgorithmCapabilityListBitString structureCodingException - thrown if an errors occurs while decoding the ANS1Objectpublic BinaryString getEntrustAlgorithmCapabilityList()
public void setEntrustAlgorithmCapabilityList(BinaryString entrustAlgorithmCapabilityList)
entrustAlgorithmCapabilityList - the Entrust algorithm capability list valuejava.lang.IllegalArgumentException - if the parameter is nullpublic boolean isEcdsaSha1Supported()
ecdsa-sha1
algorithm.true if the 'ecdsa-sha1' bit is set;
false otherwisepublic boolean isEcdsaSha224Supported()
ecdsa-sha224 algorithm.true if the 'ecdsa-sha224' bit is set;
false otherwisepublic boolean isEcdsaSha256Supported()
ecdsa-sha256 algorithm.true if the 'ecdsa-sha256' bit is set;
false otherwisepublic boolean isEcdsaSha384upported()
ecdsa-sha384 algorithm.true if the 'ecdsa-sha384' bit is set;
false otherwisepublic boolean isEcdsaSha512Supported()
ecdsa-sha512 algorithm.true if the 'ecdsa-sha512' bit is set;
false otherwisepublic boolean isRsaPssSha1Supported()
rsapss-sha1
algorithm.true if the 'rsapss-sha1; bit is set;
false otherwisepublic boolean isRsaPssSha224Supported()
rsapss-sha224 algorithm.true if the 'rsapss-sha224' bit is set;
false otherwisepublic boolean isRsaPssSha256Supported()
rsapss-sha256 algorithm.true if the 'rsapss-sha256' bit is set;
false otherwisepublic boolean isRsaPssSha384Supported()
rsapss-sha384 algorithm.true if the 'rsapss-sha384' bit is set;
false otherwisepublic boolean isRsaPssSha512Supported()
rsapss-sha512 algorithm.true if the 'rsapss-sha512' bit is set;
false otherwisepublic boolean isRsaMd2Supported()
rsa-md2
algorithm.true if the 'rsa-md2' bit is set; false
otherwisepublic boolean isRsaMd5Supported()
rsa-md5
algorithm.true if the 'rsa-md5' bit is set; false
otherwisepublic boolean isRsaSha1Supported()
rsa-sha1
algorithm.true if the 'rsa-sha1' bit is set;
false otherwisepublic boolean isRsaSha224Supported()
rsa-sha224
algorithm.true if the 'rsa-sha224' bit is set;
false otherwisepublic boolean isRsaSha256Supported()
rsa-sha256
algorithm.true if the 'rsa-sha256' bit is set;
false otherwisepublic boolean isRsaSha384Supported()
rsa-sha384
algorithm.true if the 'rsa-sha384' bit is set;
false otherwisepublic boolean isRsaSha512Supported()
rsa-sha512
algorithm.true if the 'rsa-sha512' bit is set;
false otherwisepublic boolean isDsaSha1Supported()
dsa-sha1
algorithm.true if the 'dsa-sha1' bit is set;
false otherwisepublic boolean isTripleDesDac192Supported()
tripledes-dac-192 algorithm.true if the 'tripledes-dac-192' bit is set;
false otherwisepublic boolean isHmacSha1Supported()
hmac-sha1
algorithm.true if the 'hmac-sha1' bit is set;
false otherwisepublic boolean isHmacSha224Supported()
hmac-sha224
algorithm.true if the 'hmac-sha224' bit is set;
false otherwisepublic boolean isHmacSha256Supported()
hmac-sha256
algorithm.true if the 'hmac-sha256' bit is set;
false otherwisepublic boolean isHmacSha384Supported()
hmac-sha384
algorithm.true if the 'hmac-sha384' bit is set;
false otherwisepublic boolean isHmacSha512Supported()
hmac-sha512
algorithm.true if the 'hmac-sha512' bit is set;
false otherwisepublic boolean isAesCbc128Supported()
aes-cbc-128
algorithm.true if the 'aes-cbc-128' bit is set;
false otherwisepublic boolean isAesCbc192Supported()
aes-cbc-192
algorithm.true if the 'aes-cbc-192' bit is set;
false otherwisepublic boolean isAesCbc256Supported()
aes-cbc-256
algorithm.true if the 'aes-cbc-256' bit is set;
false otherwisepublic boolean isAesGcm128Supported()
aes-gcm-128
algorithm.true if the 'aes-gcm-128' bit is set;
false otherwisepublic boolean isAesGcm192Supported()
aes-gcm-192
algorithm.true if the 'aes-gcm-192' bit is set;
false otherwisepublic boolean isAesGcm256Supported()
aes-gcm-256
algorithm.true if the 'aes-gcm-256' bit is set;
false otherwisepublic boolean isTripleDesCbc192Supported()
tripledes-cbc-192 algorithm.true if the 'tripledes-cbc-192' bit is set;
false otherwisepublic boolean isCast5Cbc80Supported()
cast5-cbc-80 algorithm.true if the 'cast5-cbc-80' bit is set;
false otherwisepublic boolean isCast5Cbc128Supported()
cast5-cbc-128 algorithm.true if the 'cast5-cbc-128' bit is set;
false otherwisepublic boolean isHmacKdfEntrustPbkdfSupported()
hmac-kdf-entrustpbkdf algorithm.true if the 'hmac-kdf-entrustpbkdf' bit is set;
false otherwisepublic boolean isHmacKdfRfc4210Rfc4211Supported()
hmac-kdf-rfc4210-rfc4211 algorithm.true if the 'hmac-kdf-rfc4210-rfc4211' bit is set;
false otherwisepublic boolean isEcdhX963Sha1Supported()
ecdh-x963sha1 algorithm.true if the 'ecdh-x963sha1' bit is set;
false otherwisepublic boolean isEcdhX963Sha256Supported()
ecdh-x963sha256 algorithm.true if the 'ecdh-x963sha256' bit is set;
false otherwisepublic void decode(ASN1Object obj) throws CodingException
EntrustAlgorithmCapabilityList from an
ASN1Object. The ASN1Object must be an
AlgorithmCapabilityListBitString structure.decode in interface ASN1Typeobj - an ASN.1 representation of an
AlgorithmCapabilityListBitString structureCodingException - thrown if an errors occurs while decoding the
ANS1Objectpublic ASN1Object toASN1Object()
EntrustAlgorithmCapabilityList object as an
ASN1Object.
toASN1Object in interface ASN1TypeAlgorithmCapabilityListBitString structurepublic java.lang.String toString()
EntrustCapabilityList object.
toString in class java.lang.Object