com.novell.security.japi.pki
Class NPKI_Error

java.lang.Object
  |
  +--com.novell.security.japi.pki.NPKI_Error

public class NPKI_Error
extends java.lang.Object

Holds the error codes for a certificate generated during verification.


Constructor Summary
NPKI_Error()
          Constructs a NPKI_Error object
NPKI_Error(int invalidityReason, int crlReason, int crlHoldInstruction, int crlRevocationTime, int crlInvalidityTime)
          Specifies what error occurred during certificate validation.
 
Method Summary
 int getCertificateInvalidity()
          Provides the reason why the certificate is invalid.
 int getCRLHoldInstruction()
          Provides the certificate on-hold instruction code.
 int getCRLInvalidity()
          Provides the reason why the CRL is invalid.
 int getCRLInvalidityDateTime()
          Gets the date the CRL becomes invalid.
 int getCRLRevocationTime()
          Gets the time the certificate becomes invalid.
 void setCertificateInvalidity(int certInvalidity)
           
 void setCRLHoldInstruction(int holdInstruction)
           
 void setCRLInvalidity(int crlReason)
           
 void setCRLInvalidityDateTime(int invalidityDateTime)
           
 void setCRLRevocationTime(int revocationTime)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NPKI_Error

public NPKI_Error()
Constructs a NPKI_Error object


NPKI_Error

public NPKI_Error(int invalidityReason,
                  int crlReason,
                  int crlHoldInstruction,
                  int crlRevocationTime,
                  int crlInvalidityTime)
Specifies what error occurred during certificate validation.

Parameters:
invalidityReason - Specifies the certificate invalidity reason.
crlReason - If the certificate has been revoked, then the reason code from the CRL will be returned.
crlHoldInstruction - If the certificate has been revoked, and the reason code is certificateHold then the hold instruction from the CRL will be returned.
crlRevocationTime - The date the certificate became invalid.
crlInvalidityTime - The date the CRL becomes invalid.
Method Detail

setCertificateInvalidity

public void setCertificateInvalidity(int certInvalidity)

setCRLInvalidity

public void setCRLInvalidity(int crlReason)

setCRLHoldInstruction

public void setCRLHoldInstruction(int holdInstruction)

setCRLRevocationTime

public void setCRLRevocationTime(int revocationTime)

setCRLInvalidityDateTime

public void setCRLInvalidityDateTime(int invalidityDateTime)

getCertificateInvalidity

public int getCertificateInvalidity()
Provides the reason why the certificate is invalid. (i.e., Revoked, invalid issuer, expired, etc.).

Returns:
The reason that the certificate invalidity reason.

getCRLInvalidity

public int getCRLInvalidity()
Provides the reason why the CRL is invalid.

Returns:
The CRL invalidity reason.

getCRLHoldInstruction

public int getCRLHoldInstruction()
Provides the certificate on-hold instruction code.
  • PKI_HOLD_INSTRUCTION_NONE
  • PKI_HOLD_INSTRUCTION_CALL_ISSUER
  • PKI_HOLD_INSTRUCTION_REJECT

    Returns:
    The hold instruction code..

  • getCRLRevocationTime

    public int getCRLRevocationTime()
    Gets the time the certificate becomes invalid.

    Returns:
    The time that the certificate was revoked.

    getCRLInvalidityDateTime

    public int getCRLInvalidityDateTime()
    Gets the date the CRL becomes invalid.

    Returns:
    date the CRL became invalid