com.rsa.certj.cert.attributes

Class VeriSignCRSFailureInfo

java.lang.Object
  |
  +--com.rsa.certj.cert.attributes.X501Attribute
        |
        +--com.rsa.certj.cert.attributes.VeriSignCRSFailureInfo
All Implemented Interfaces:
Cloneable, Serializable

public class VeriSignCRSFailureInfo
extends X501Attribute
implements Cloneable, Serializable

This class holds, encodes, and decodes the CRS failure information attribute.

The ASN.1 definition is as follows:

 -- Description: Identifies a CRS Failure Info attribute
 -- OID in decimal notation: (2.16.840.1.113733.1.9.4)
 -- Definition: 
    id-crs-failInfo ::= {id-attributes crs-failInfo(4)}
    CRSFailInfo ::= INTEGER
For a complete list of error codes, contact your VeriSign representative to obtain the VeriSign CRS Profile Specification.

Copyright © RSA Security Inc., 1999-2001. All rights reserved.

See Also

Serialized Form

Fields inherited from class com.rsa.certj.cert.attributes.X501Attribute
CHALLENGE_PASSWORD, CONTENT_TYPE, COUNTRY_OF_CITIZENSHIP, COUNTRY_OF_RESIDENCE, CRS_DUAL_STATUS, CRS_FAILURE_INFO, CRS_MESSAGE_TYPE, CRS_PKI_STATUS, CRS_RECIPIENT_NONCE, CRS_SENDER_NONCE, CRS_TRANSACTION_ID, CRS_VERSION, DATE_OF_BIRTH, FRIENDLY_NAME, GENDER, LOCAL_KEY_ID, MESSAGE_DIGEST, NON_STANDARD, PLACE_OF_BIRTH, POSTAL_ADDRESS, PSEUDONYM, SIGNING_TIME, SMART_CSP, X509_V3_EXTENSION
 

Constructor Summary

VeriSignCRSFailureInfo()

Constructs an empty VeriSignCRSFailureInfo object.

VeriSignCRSFailureInfo(int info)

Constructs a VeriSignCRSFailureInfo object and initializes it with the error code.

 

Method Summary

 Object

clone()

Overrides the default clone method to get a deeper clone.

 boolean

equals(Object obj)

Returns true if this object and obj contain the same VeriSignCRSFailureInfo, returns false otherwise.

 int

getFailureInfo()

Gets the value of this attribute.

 void

setFailureInfo(int info)

Sets the value of this attribute.

 
Methods inherited from class com.rsa.certj.cert.attributes.X501Attribute
clearSensitiveData, compareOID, derEncodeAttributeLen, getAttributeType, getAttributeTypeString, getDEREncoding, getDERLen, getInstance, getNextBEROffset, getOID, isAttributeType
 
Methods inherited from class java.lang.Object
getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

VeriSignCRSFailureInfo

public VeriSignCRSFailureInfo()
Constructs an empty VeriSignCRSFailureInfo object.

VeriSignCRSFailureInfo

public VeriSignCRSFailureInfo(int info)
Constructs a VeriSignCRSFailureInfo object and initializes it with the error code. For example, 0x010a is a BER-encoding error. For a complete list of error codes, contact your VeriSign representative to obtain the VeriSign CRS Profile Specification.

Parameters

         info  

A CRS failure information error code.

Method Detail

setFailureInfo

public void setFailureInfo(int info)
Sets the value of this attribute. For example, 0x010a is a BER-encoding error. For a complete list of error codes, contact your VeriSign representative to obtain the VeriSign CRS Profile Specification.

Parameters

         info  

The CRS failure information error code.


getFailureInfo

public int getFailureInfo()
Gets the value of this attribute. If the value is not set, this method returns -1.

Returns

An int that specifies the CRS failure information status. If the value is not set, this method returns -1.

clone

public Object clone()
             throws CloneNotSupportedException
Overrides the default clone method to get a deeper clone.

Overrides

clone in class X501Attribute

Returns

A new VeriSignCRSFailureInfo object, a copy of this object.

Throws

CloneNotSupportedException - If the cloning operation is not successful.

equals

public boolean equals(Object obj)
Returns true if this object and obj contain the same VeriSignCRSFailureInfo, returns false otherwise.

Overrides

equals in class Object

Parameters

         obj  

The instance of the VeriSignCRSFailureInfo object.

Returns

A boolean indicating whether these objects are equal.


RSA BSAFE ® Cert-J 2.1.1 001-047007-211-001-000