Serializable
public class AS400CertificateAttribute extends Object implements Serializable
The AS400CertificateAttribute class represents a certificate attribute. This attribute is used to identify certificates during a list operation. This class contains a single attribute which can be either a String or byte array value.
Modifier and Type | Field | Description |
---|---|---|
static int |
PUBLIC_KEY_BYTES |
The byte array attribute type representing the subjectPublicKeyInfo
field from the certificate.
|
static int |
SUBJECT_COMMON_NAME |
Constant indicating the attribute represents the subject's
common name in the certificate.
|
static int |
SUBJECT_COUNTRY |
Constant indicating the attribute represents the subject's
country in the certificate.
|
static int |
SUBJECT_LOCALITY |
Constant indicating the attribute represents the subject's
locality in the certificate.
|
static int |
SUBJECT_ORGANIZATION |
Constant indicating the attribute represents the subject's
organization in the certificate.
|
static int |
SUBJECT_ORGANIZATION_UNIT |
Constant indicating the attribute represents the subject's
organizational unit in the certificate.
|
static int |
SUBJECT_STATE |
Contant indicating the attribute represents the subject's
state or province in the certificate.
|
Constructor | Description |
---|---|
AS400CertificateAttribute() |
Constructs an AS400CertificateAttribute object.
|
AS400CertificateAttribute(int attributeType,
byte[] attributeValue) |
Constructs an AS400CertificateAttribute object.
|
AS400CertificateAttribute(int attributeType,
String attributeValue) |
Constructs an AS400CertificateAttribute object.
|
Modifier and Type | Method | Description |
---|---|---|
int |
getAttributeType() |
Returns the attribute type.
|
Object |
getAttributeValue() |
Returns the attribute value.
|
boolean |
isString() |
Indicates if the attribute is a String.
|
void |
setAttribute(int attributeType,
byte[] attributeValue) |
Sets the byte attribute value.
|
void |
setAttribute(int attributeType,
String attributeValue) |
Sets the String attribute value.
|
public static final int PUBLIC_KEY_BYTES
public static final int SUBJECT_COMMON_NAME
public static final int SUBJECT_COUNTRY
public static final int SUBJECT_LOCALITY
public static final int SUBJECT_STATE
public static final int SUBJECT_ORGANIZATION
public static final int SUBJECT_ORGANIZATION_UNIT
public AS400CertificateAttribute()
public AS400CertificateAttribute(int attributeType, byte[] attributeValue) throws ExtendedIllegalArgumentException
attributeType
- The attribute type.
Valid values are:
attributeValue
- The attribute value.ExtendedIllegalArgumentException
- If the attribute Type is invalid.public AS400CertificateAttribute(int attributeType, String attributeValue) throws ExtendedIllegalArgumentException
attributeType
- The attribute type.
Valid values are:
attributeValue
- The attribute value.ExtendedIllegalArgumentException
- If the attribute Type is invalid.public int getAttributeType()
public Object getAttributeValue()
public boolean isString()
public void setAttribute(int attributeType, byte[] attributeValue) throws ExtendedIllegalArgumentException
attributeType
- The attribute type.
Valid values are:
attributeValue
- The attribute value.ExtendedIllegalArgumentException
- If the attribute Type is invalid.public void setAttribute(int attributeType, String attributeValue) throws ExtendedIllegalArgumentException
attributeType
- The attribute type.
Valid values are:
attributeValue
- The attribute value.ExtendedIllegalArgumentException
- If the attribute Type is invalid.Copyright © 2024. All rights reserved.