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.


Variable Index

 o PUBLIC_KEY_BYTES
The byte array attribute type representing the subjectPublicKeyInfo field from the certificate.
 o SUBJECT_COMMON_NAME
Constant indicating the attribute represents the subject's common name in the certificate.
 o SUBJECT_COUNTRY
Constant indicating the attribute represents the subject's country in the certificate.
 o SUBJECT_LOCALITY
Constant indicating the attribute represents the subject's locality in the certificate.
 o SUBJECT_ORGANIZATION
Constant indicating the attribute represents the subject's organization in the certificate.
 o SUBJECT_ORGANIZATION_UNIT
Constant indicating the attribute represents the subject's organizational unit in the certificate.
 o SUBJECT_STATE
Contant indicating the attribute represents the subject's state or province in the certificate.

Constructor Index

 o AS400CertificateAttribute()
Constructs an AS400CertificateAttribute object.
 o AS400CertificateAttribute(int, byte[])
Constructs an AS400CertificateAttribute object.
 o AS400CertificateAttribute(int, String)
Constructs an AS400CertificateAttribute object.

Method Index

 o getAttributeType()
Returns the attribute type.
 o getAttributeValue()
Returns the attribute value.
 o isString()
Indicates if the attribute is a String.
 o setAttribute(int, byte[])
Sets the byte attribute value.
 o setAttribute(int, String)
Sets the String attribute value.

Variables

 o PUBLIC_KEY_BYTES
 public static final int PUBLIC_KEY_BYTES
The byte array attribute type representing the subjectPublicKeyInfo field from the certificate.

 o SUBJECT_COMMON_NAME
 public static final int SUBJECT_COMMON_NAME
Constant indicating the attribute represents the subject's common name in the certificate.

 o SUBJECT_COUNTRY
 public static final int SUBJECT_COUNTRY
Constant indicating the attribute represents the subject's country in the certificate.

 o SUBJECT_LOCALITY
 public static final int SUBJECT_LOCALITY
Constant indicating the attribute represents the subject's locality in the certificate.

 o SUBJECT_STATE
 public static final int SUBJECT_STATE
Contant indicating the attribute represents the subject's state or province in the certificate.

 o SUBJECT_ORGANIZATION
 public static final int SUBJECT_ORGANIZATION
Constant indicating the attribute represents the subject's organization in the certificate.

 o SUBJECT_ORGANIZATION_UNIT
 public static final int SUBJECT_ORGANIZATION_UNIT
Constant indicating the attribute represents the subject's organizational unit in the certificate.

Constructors

 o AS400CertificateAttribute
 public AS400CertificateAttribute()
Constructs an AS400CertificateAttribute object.

 o AS400CertificateAttribute
 public AS400CertificateAttribute(int attributeType,
                                  byte attributeValue[]) throws ExtendedIllegalArgumentException
Constructs an AS400CertificateAttribute object.

Parameters:
attributeType - The attribute type. Valid values are:
  • PUBLIC_KEY_BYTES
attributeValue - The attribute value.
Throws: ExtendedIllegalArgumentException
If the attribute Type is invalid.
 o 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.

Methods

 o getAttributeType
 public int getAttributeType()
Returns the attribute type.

Returns:
The attribute type.
 o getAttributeValue
 public Object getAttributeValue()
Returns the attribute value.

Returns:
The attribute value.
 o isString
 public boolean isString()
Indicates if the attribute is a String.

Returns:
Returns true if the attribute is a String; false otherwise.
 o setAttribute
 public void setAttribute(int attributeType,
                          byte attributeValue[]) throws ExtendedIllegalArgumentException
Sets the byte attribute value.

Parameters:
attributeType - The attribute type. Valid values are:
  • PUBLIC_KEY_BYTES
attributeValue - The attribute value.
Throws: ExtendedIllegalArgumentException
If the attribute Type is invalid.
 o 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