org.globus.gsi.proxy
Class ProxyPathValidatorException

java.lang.Object
  extended byjava.lang.Throwable
      extended byjava.lang.Exception
          extended byjava.security.GeneralSecurityException
              extended byorg.globus.common.ChainedGeneralSecurityException
                  extended byorg.globus.gsi.proxy.ProxyPathValidatorException
All Implemented Interfaces:
Serializable

public class ProxyPathValidatorException
extends ChainedGeneralSecurityException

See Also:
Serialized Form

Field Summary
static int EXPIRED_CRL
           
static int FAILURE
           
static int LIMITED_PROXY_ERROR
           
static int NO_SIGNING_POLICY
           
static int NO_SIGNING_POLICY_FILE
           
static int PATH_LENGTH_EXCEEDED
           
static int PROXY_VIOLATION
           
static int REVOKED
           
static int SIGNING_POLICY_VIOLATION
           
static int UNKNOWN_CA
           
static int UNKNOWN_POLICY
           
static int UNSUPPORTED_EXTENSION
           
 
Constructor Summary
ProxyPathValidatorException(int errorCode)
           
ProxyPathValidatorException(int errorCode, String msg, Throwable root)
           
ProxyPathValidatorException(int errorCode, Throwable root)
           
ProxyPathValidatorException(int errorCode, X509Certificate cert, String msg)
           
 
Method Summary
 X509Certificate getCertificate()
          Returns the certificate that was being validated when the exception was thrown.
static String getDateAsString(Date date)
           
 int getErrorCode()
           
 
Methods inherited from class org.globus.common.ChainedGeneralSecurityException
getException, getMessage, printStackTrace, printStackTrace, printStackTrace
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, initCause, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

FAILURE

public static final int FAILURE
See Also:
Constant Field Values

PROXY_VIOLATION

public static final int PROXY_VIOLATION
See Also:
Constant Field Values

UNSUPPORTED_EXTENSION

public static final int UNSUPPORTED_EXTENSION
See Also:
Constant Field Values

PATH_LENGTH_EXCEEDED

public static final int PATH_LENGTH_EXCEEDED
See Also:
Constant Field Values

UNKNOWN_CA

public static final int UNKNOWN_CA
See Also:
Constant Field Values

UNKNOWN_POLICY

public static final int UNKNOWN_POLICY
See Also:
Constant Field Values

REVOKED

public static final int REVOKED
See Also:
Constant Field Values

LIMITED_PROXY_ERROR

public static final int LIMITED_PROXY_ERROR
See Also:
Constant Field Values

EXPIRED_CRL

public static final int EXPIRED_CRL
See Also:
Constant Field Values

NO_SIGNING_POLICY_FILE

public static final int NO_SIGNING_POLICY_FILE
See Also:
Constant Field Values

NO_SIGNING_POLICY

public static final int NO_SIGNING_POLICY
See Also:
Constant Field Values

SIGNING_POLICY_VIOLATION

public static final int SIGNING_POLICY_VIOLATION
See Also:
Constant Field Values
Constructor Detail

ProxyPathValidatorException

public ProxyPathValidatorException(int errorCode)

ProxyPathValidatorException

public ProxyPathValidatorException(int errorCode,
                                   Throwable root)

ProxyPathValidatorException

public ProxyPathValidatorException(int errorCode,
                                   String msg,
                                   Throwable root)

ProxyPathValidatorException

public ProxyPathValidatorException(int errorCode,
                                   X509Certificate cert,
                                   String msg)
Method Detail

getErrorCode

public int getErrorCode()

getCertificate

public X509Certificate getCertificate()
Returns the certificate that was being validated when the exception was thrown.

Returns:
the Certificate that was being validated when the exception was thrown (or null if not specified)

getDateAsString

public static String getDateAsString(Date date)