org.apache.directory.server.kerberos.shared.exceptions
Class ErrorType

java.lang.Object
  extended by org.apache.directory.server.kerberos.shared.exceptions.ErrorType
All Implemented Interfaces:
java.lang.Comparable

public final class ErrorType
extends java.lang.Object
implements java.lang.Comparable

Type safe enumeration of Kerberos error types

Version:
$Rev: 434558 $, $Date: 2006-08-25 01:11:45 +0200 (Fri, 25 Aug 2006) $
Author:
Apache Directory Project

Field Summary
static ErrorType KDC_ERR_BAD_PVNO
           
static ErrorType KDC_ERR_BADOPTION
           
static ErrorType KDC_ERR_C_OLD_MAST_KVNO
           
static ErrorType KDC_ERR_C_PRINCIPAL_UNKNOWN
           
static ErrorType KDC_ERR_CANNOT_POSTDATE
           
static ErrorType KDC_ERR_CLIENT_NOTYET
           
static ErrorType KDC_ERR_CLIENT_REVOKED
           
static ErrorType KDC_ERR_ETYPE_NOSUPP
           
static ErrorType KDC_ERR_KEY_EXPIRED
           
static ErrorType KDC_ERR_MUST_USE_USER2USER
           
static ErrorType KDC_ERR_NAME_EXP
           
static ErrorType KDC_ERR_NEVER_VALID
           
static ErrorType KDC_ERR_NONE
           
static ErrorType KDC_ERR_NULL_KEY
           
static ErrorType KDC_ERR_PADATA_TYPE_NOSUPP
           
static ErrorType KDC_ERR_PATH_NOT_ACCEPTED
           
static ErrorType KDC_ERR_POLICY
           
static ErrorType KDC_ERR_PREAUTH_FAILED
           
static ErrorType KDC_ERR_PREAUTH_REQUIRED
           
static ErrorType KDC_ERR_PRINCIPAL_NOT_UNIQUE
           
static ErrorType KDC_ERR_S_OLD_MAST_KVNO
           
static ErrorType KDC_ERR_S_PRINCIPAL_UNKNOWN
           
static ErrorType KDC_ERR_SERVER_NOMATCH
           
static ErrorType KDC_ERR_SERVICE_EXP
           
static ErrorType KDC_ERR_SERVICE_NOTYET
           
static ErrorType KDC_ERR_SERVICE_REVOKED
           
static ErrorType KDC_ERR_SUMTYPE_NOSUPP
           
static ErrorType KDC_ERR_SVC_UNAVAILABLE
           
static ErrorType KDC_ERR_TGT_REVOKED
           
static ErrorType KDC_ERR_TRTYPE_NOSUPP
           
static ErrorType KRB_AP_ERR_BAD_INTEGRITY
           
static ErrorType KRB_AP_ERR_BADADDR
           
static ErrorType KRB_AP_ERR_BADDIRECTION
           
static ErrorType KRB_AP_ERR_BADKEYVER
           
static ErrorType KRB_AP_ERR_BADMATCH
           
static ErrorType KRB_AP_ERR_BADORDER
           
static ErrorType KRB_AP_ERR_BADSEQ
           
static ErrorType KRB_AP_ERR_BADVERSION
           
static ErrorType KRB_AP_ERR_INAPP_CKSUM
           
static ErrorType KRB_AP_ERR_METHOD
           
static ErrorType KRB_AP_ERR_MODIFIED
           
static ErrorType KRB_AP_ERR_MSG_TYPE
           
static ErrorType KRB_AP_ERR_MUT_FAIL
           
static ErrorType KRB_AP_ERR_NO_TGT
           
static ErrorType KRB_AP_ERR_NOKEY
           
static ErrorType KRB_AP_ERR_NOT_US
           
static ErrorType KRB_AP_ERR_REPEAT
           
static ErrorType KRB_AP_ERR_SKEW
           
static ErrorType KRB_AP_ERR_TKT_EXPIRED
           
static ErrorType KRB_AP_ERR_TKT_NYV
           
static ErrorType KRB_AP_ERR_USER_TO_USER_REQUIRED
           
static ErrorType KRB_ERR_CANT_VERIFY_CERTIFICATE
           
static ErrorType KRB_ERR_CERTIFICATE_MISMATCH
           
static ErrorType KRB_ERR_CLIENT_NAME_MISMATCH
           
static ErrorType KRB_ERR_CLIENT_NOT_TRUSTED
           
static ErrorType KRB_ERR_FIELD_TOOLONG
           
static ErrorType KRB_ERR_GENERIC
           
static ErrorType KRB_ERR_INVALID_CERTIFICATE
           
static ErrorType KRB_ERR_INVALID_SIG
           
static ErrorType KRB_ERR_KDC_NAME_MISMATCH
           
static ErrorType KRB_ERR_KDC_NOT_TRUSTED
           
static ErrorType KRB_ERR_KEY_TOO_WEAK
           
static ErrorType KRB_ERR_REVOCATION_STATUS_UNAVAILABLE
           
static ErrorType KRB_ERR_REVOCATION_STATUS_UNKNOWN
           
static ErrorType KRB_ERR_REVOKED_CERTIFICATE
           
static ErrorType KRB_ERR_WRONG_REALM
           
static java.util.List VALUES
          a list of all the error type constants
 
Method Summary
 int compareTo(java.lang.Object that)
          Compares this type to another object hopefully one that is of the same type.
 java.lang.String getMessage()
          Returns the message for this Kerberos error.
 int getOrdinal()
          Gets the ordinal value associated with this Kerberos error.
static ErrorType getTypeByOrdinal(int ordinal)
          Gets the ordinal by its ordinal value.
 java.lang.String toString()
          Returns the message for this Kerberos error.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

KDC_ERR_NONE

public static final ErrorType KDC_ERR_NONE

KDC_ERR_NAME_EXP

public static final ErrorType KDC_ERR_NAME_EXP

KDC_ERR_SERVICE_EXP

public static final ErrorType KDC_ERR_SERVICE_EXP

KDC_ERR_BAD_PVNO

public static final ErrorType KDC_ERR_BAD_PVNO

KDC_ERR_C_OLD_MAST_KVNO

public static final ErrorType KDC_ERR_C_OLD_MAST_KVNO

KDC_ERR_S_OLD_MAST_KVNO

public static final ErrorType KDC_ERR_S_OLD_MAST_KVNO

KDC_ERR_C_PRINCIPAL_UNKNOWN

public static final ErrorType KDC_ERR_C_PRINCIPAL_UNKNOWN

KDC_ERR_S_PRINCIPAL_UNKNOWN

public static final ErrorType KDC_ERR_S_PRINCIPAL_UNKNOWN

KDC_ERR_PRINCIPAL_NOT_UNIQUE

public static final ErrorType KDC_ERR_PRINCIPAL_NOT_UNIQUE

KDC_ERR_NULL_KEY

public static final ErrorType KDC_ERR_NULL_KEY

KDC_ERR_CANNOT_POSTDATE

public static final ErrorType KDC_ERR_CANNOT_POSTDATE

KDC_ERR_NEVER_VALID

public static final ErrorType KDC_ERR_NEVER_VALID

KDC_ERR_POLICY

public static final ErrorType KDC_ERR_POLICY

KDC_ERR_BADOPTION

public static final ErrorType KDC_ERR_BADOPTION

KDC_ERR_ETYPE_NOSUPP

public static final ErrorType KDC_ERR_ETYPE_NOSUPP

KDC_ERR_SUMTYPE_NOSUPP

public static final ErrorType KDC_ERR_SUMTYPE_NOSUPP

KDC_ERR_PADATA_TYPE_NOSUPP

public static final ErrorType KDC_ERR_PADATA_TYPE_NOSUPP

KDC_ERR_TRTYPE_NOSUPP

public static final ErrorType KDC_ERR_TRTYPE_NOSUPP

KDC_ERR_CLIENT_REVOKED

public static final ErrorType KDC_ERR_CLIENT_REVOKED

KDC_ERR_SERVICE_REVOKED

public static final ErrorType KDC_ERR_SERVICE_REVOKED

KDC_ERR_TGT_REVOKED

public static final ErrorType KDC_ERR_TGT_REVOKED

KDC_ERR_CLIENT_NOTYET

public static final ErrorType KDC_ERR_CLIENT_NOTYET

KDC_ERR_SERVICE_NOTYET

public static final ErrorType KDC_ERR_SERVICE_NOTYET

KDC_ERR_KEY_EXPIRED

public static final ErrorType KDC_ERR_KEY_EXPIRED

KDC_ERR_PREAUTH_FAILED

public static final ErrorType KDC_ERR_PREAUTH_FAILED

KDC_ERR_PREAUTH_REQUIRED

public static final ErrorType KDC_ERR_PREAUTH_REQUIRED

KDC_ERR_SERVER_NOMATCH

public static final ErrorType KDC_ERR_SERVER_NOMATCH

KDC_ERR_MUST_USE_USER2USER

public static final ErrorType KDC_ERR_MUST_USE_USER2USER

KDC_ERR_PATH_NOT_ACCEPTED

public static final ErrorType KDC_ERR_PATH_NOT_ACCEPTED

KDC_ERR_SVC_UNAVAILABLE

public static final ErrorType KDC_ERR_SVC_UNAVAILABLE

KRB_AP_ERR_BAD_INTEGRITY

public static final ErrorType KRB_AP_ERR_BAD_INTEGRITY

KRB_AP_ERR_TKT_EXPIRED

public static final ErrorType KRB_AP_ERR_TKT_EXPIRED

KRB_AP_ERR_TKT_NYV

public static final ErrorType KRB_AP_ERR_TKT_NYV

KRB_AP_ERR_REPEAT

public static final ErrorType KRB_AP_ERR_REPEAT

KRB_AP_ERR_NOT_US

public static final ErrorType KRB_AP_ERR_NOT_US

KRB_AP_ERR_BADMATCH

public static final ErrorType KRB_AP_ERR_BADMATCH

KRB_AP_ERR_SKEW

public static final ErrorType KRB_AP_ERR_SKEW

KRB_AP_ERR_BADADDR

public static final ErrorType KRB_AP_ERR_BADADDR

KRB_AP_ERR_BADVERSION

public static final ErrorType KRB_AP_ERR_BADVERSION

KRB_AP_ERR_MSG_TYPE

public static final ErrorType KRB_AP_ERR_MSG_TYPE

KRB_AP_ERR_MODIFIED

public static final ErrorType KRB_AP_ERR_MODIFIED

KRB_AP_ERR_BADORDER

public static final ErrorType KRB_AP_ERR_BADORDER

KRB_AP_ERR_BADKEYVER

public static final ErrorType KRB_AP_ERR_BADKEYVER

KRB_AP_ERR_NOKEY

public static final ErrorType KRB_AP_ERR_NOKEY

KRB_AP_ERR_MUT_FAIL

public static final ErrorType KRB_AP_ERR_MUT_FAIL

KRB_AP_ERR_BADDIRECTION

public static final ErrorType KRB_AP_ERR_BADDIRECTION

KRB_AP_ERR_METHOD

public static final ErrorType KRB_AP_ERR_METHOD

KRB_AP_ERR_BADSEQ

public static final ErrorType KRB_AP_ERR_BADSEQ

KRB_AP_ERR_INAPP_CKSUM

public static final ErrorType KRB_AP_ERR_INAPP_CKSUM

KRB_ERR_GENERIC

public static final ErrorType KRB_ERR_GENERIC

KRB_ERR_FIELD_TOOLONG

public static final ErrorType KRB_ERR_FIELD_TOOLONG

KRB_ERR_CLIENT_NOT_TRUSTED

public static final ErrorType KRB_ERR_CLIENT_NOT_TRUSTED

KRB_ERR_KDC_NOT_TRUSTED

public static final ErrorType KRB_ERR_KDC_NOT_TRUSTED

KRB_ERR_INVALID_SIG

public static final ErrorType KRB_ERR_INVALID_SIG

KRB_ERR_KEY_TOO_WEAK

public static final ErrorType KRB_ERR_KEY_TOO_WEAK

KRB_ERR_CERTIFICATE_MISMATCH

public static final ErrorType KRB_ERR_CERTIFICATE_MISMATCH

KRB_AP_ERR_NO_TGT

public static final ErrorType KRB_AP_ERR_NO_TGT

KRB_ERR_WRONG_REALM

public static final ErrorType KRB_ERR_WRONG_REALM

KRB_AP_ERR_USER_TO_USER_REQUIRED

public static final ErrorType KRB_AP_ERR_USER_TO_USER_REQUIRED

KRB_ERR_CANT_VERIFY_CERTIFICATE

public static final ErrorType KRB_ERR_CANT_VERIFY_CERTIFICATE

KRB_ERR_INVALID_CERTIFICATE

public static final ErrorType KRB_ERR_INVALID_CERTIFICATE

KRB_ERR_REVOKED_CERTIFICATE

public static final ErrorType KRB_ERR_REVOKED_CERTIFICATE

KRB_ERR_REVOCATION_STATUS_UNKNOWN

public static final ErrorType KRB_ERR_REVOCATION_STATUS_UNKNOWN

KRB_ERR_REVOCATION_STATUS_UNAVAILABLE

public static final ErrorType KRB_ERR_REVOCATION_STATUS_UNAVAILABLE

KRB_ERR_CLIENT_NAME_MISMATCH

public static final ErrorType KRB_ERR_CLIENT_NAME_MISMATCH

KRB_ERR_KDC_NAME_MISMATCH

public static final ErrorType KRB_ERR_KDC_NAME_MISMATCH

VALUES

public static final java.util.List VALUES
a list of all the error type constants

Method Detail

getMessage

public java.lang.String getMessage()
Returns the message for this Kerberos error.

Returns:
the message for this Kerberos error.

toString

public java.lang.String toString()
Returns the message for this Kerberos error.

Overrides:
toString in class java.lang.Object
Returns:
the message for this Kerberos error.

compareTo

public int compareTo(java.lang.Object that)
Compares this type to another object hopefully one that is of the same type.

Specified by:
compareTo in interface java.lang.Comparable
Parameters:
that - the object to compare this KerberosError to
Returns:
ordinal - ( ( KerberosError ) that ).ordinal;

getTypeByOrdinal

public static ErrorType getTypeByOrdinal(int ordinal)
Gets the ordinal by its ordinal value.

Parameters:
ordinal - the ordinal value of the ordinal
Returns:
the type corresponding to the ordinal value

getOrdinal

public int getOrdinal()
Gets the ordinal value associated with this Kerberos error.

Returns:
the ordinal value associated with this Kerberos error


Copyright © 2003-2010 Apache Software Foundation. All Rights Reserved.