All Packages Class Hierarchy This Package Previous Next Index
Class com.ibm.as400.access.AS400CertificateAttribute
java.lang.Object
|
+----com.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.
-
PUBLIC_KEY_BYTES
- The byte array attribute type representing the subjectPublicKeyInfo
field from the certificate.
-
SUBJECT_COMMON_NAME
- Constant indicating the attribute represents the subject's
common name in the certificate.
-
SUBJECT_COUNTRY
- Constant indicating the attribute represents the subject's
country in the certificate.
-
SUBJECT_LOCALITY
- Constant indicating the attribute represents the subject's
locality in the certificate.
-
SUBJECT_ORGANIZATION
- Constant indicating the attribute represents the subject's
organization in the certificate.
-
SUBJECT_ORGANIZATION_UNIT
- Constant indicating the attribute represents the subject's
organizational unit in the certificate.
-
SUBJECT_STATE
- Contant indicating the attribute represents the subject's
state or province in the certificate.
-
AS400CertificateAttribute()
- Constructs an AS400CertificateAttribute object.
-
AS400CertificateAttribute(int, byte[])
- Constructs an AS400CertificateAttribute object.
-
AS400CertificateAttribute(int, String)
- Constructs an AS400CertificateAttribute object.
-
getAttributeType()
- Returns the attribute type.
-
getAttributeValue()
- Returns the attribute value.
-
isString()
- Indicates if the attribute is a String.
-
setAttribute(int, byte[])
- Sets the byte attribute value.
-
setAttribute(int, String)
- Sets the String attribute value.
PUBLIC_KEY_BYTES
public static final int PUBLIC_KEY_BYTES
- The byte array attribute type representing the subjectPublicKeyInfo
field from the certificate.
SUBJECT_COMMON_NAME
public static final int SUBJECT_COMMON_NAME
- Constant indicating the attribute represents the subject's
common name in the certificate.
SUBJECT_COUNTRY
public static final int SUBJECT_COUNTRY
- Constant indicating the attribute represents the subject's
country in the certificate.
SUBJECT_LOCALITY
public static final int SUBJECT_LOCALITY
- Constant indicating the attribute represents the subject's
locality in the certificate.
SUBJECT_STATE
public static final int SUBJECT_STATE
- Contant indicating the attribute represents the subject's
state or province in the certificate.
SUBJECT_ORGANIZATION
public static final int SUBJECT_ORGANIZATION
- Constant indicating the attribute represents the subject's
organization in the certificate.
SUBJECT_ORGANIZATION_UNIT
public static final int SUBJECT_ORGANIZATION_UNIT
- Constant indicating the attribute represents the subject's
organizational unit in the certificate.
AS400CertificateAttribute
public AS400CertificateAttribute()
- Constructs an AS400CertificateAttribute object.
AS400CertificateAttribute
public AS400CertificateAttribute(int attributeType,
byte attributeValue[]) throws ExtendedIllegalArgumentException
- Constructs an AS400CertificateAttribute object.
- Parameters:
- attributeType - The attribute type.
Valid values are:
- attributeValue - The attribute value.
- Throws: ExtendedIllegalArgumentException
- If the attribute Type is invalid.
AS400CertificateAttribute
public AS400CertificateAttribute(int attributeType,
String attributeValue) throws ExtendedIllegalArgumentException
- Constructs an AS400CertificateAttribute object.
- Parameters:
- attributeType - The attribute type.
Valid values are:
- SUBJECT_COMMON_NAME
- SUBJECT_COUNTRY
- SUBJECT_LOCALITY
- SUBJECT_ORGANIZATION
- SUBJECT_ORGANIZATION_UNIT
- SUBJECT_STATE
- attributeValue - The attribute value.
- Throws: ExtendedIllegalArgumentException
- If the attribute Type is invalid.
getAttributeType
public int getAttributeType()
- Returns the attribute type.
- Returns:
- The attribute type.
getAttributeValue
public Object getAttributeValue()
- Returns the attribute value.
- Returns:
- The attribute value.
isString
public boolean isString()
- Indicates if the attribute is a String.
- Returns:
- Returns true if the attribute is a String; false otherwise.
setAttribute
public void setAttribute(int attributeType,
byte attributeValue[]) throws ExtendedIllegalArgumentException
- Sets the byte attribute value.
- Parameters:
- attributeType - The attribute type.
Valid values are:
- attributeValue - The attribute value.
- Throws: ExtendedIllegalArgumentException
- If the attribute Type is invalid.
setAttribute
public void setAttribute(int attributeType,
String attributeValue) throws ExtendedIllegalArgumentException
- Sets the String attribute value.
- Parameters:
- attributeType - The attribute type.
Valid values are:
- SUBJECT_COMMON_NAME
- SUBJECT_COUNTRY
- SUBJECT_LOCALITY
- SUBJECT_ORGANIZATION
- SUBJECT_ORGANIZATION_UNIT
- SUBJECT_STATE
- attributeValue - The attribute value.
- Throws: ExtendedIllegalArgumentException
- If the attribute Type is invalid.
All Packages Class Hierarchy This Package Previous Next Index