|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.ibm.as400.access.AS400CertificateAttribute
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 and 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 and 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 and 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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
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
| Constructor Detail |
|---|
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.| Method Detail |
|---|
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.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||