com.dstc.security.kerberos
Class KerberosError
java.lang.Object
|
+--java.lang.Throwable
|
+--java.lang.Exception
|
+--com.dstc.security.kerberos.KerberosException
|
+--com.dstc.security.kerberos.KerberosError
- public class KerberosError
- extends KerberosException
An Exception for an abnormal condition indicated
by the receipt of a KrbError message from the KDC or a Kerberized
application.
- See Also:
KrbError
, Serialized Form
Method Summary |
int |
getErrorCode()
Returns the KrbError error code |
NO_ERROR
public static final int NO_ERROR
KDC_ERR_NAME_EXP
public static final int KDC_ERR_NAME_EXP
KDC_ERR_SERVICE_EXP
public static final int KDC_ERR_SERVICE_EXP
KDC_ERR_BAD_PVNO
public static final int KDC_ERR_BAD_PVNO
KDC_ERR_C_OLD_MAST_KVNO
public static final int KDC_ERR_C_OLD_MAST_KVNO
KDC_ERR_S_OLD_MAST_KVNO
public static final int KDC_ERR_S_OLD_MAST_KVNO
KDC_ERR_C_PRINCIPAL_UNKNOWN
public static final int KDC_ERR_C_PRINCIPAL_UNKNOWN
KDC_ERR_S_PRINCIPAL_UNKNOWN
public static final int KDC_ERR_S_PRINCIPAL_UNKNOWN
KDC_ERR_PRINCIPAL_NOT_UNIQUE
public static final int KDC_ERR_PRINCIPAL_NOT_UNIQUE
KDC_ERR_NULL_KEY
public static final int KDC_ERR_NULL_KEY
KDC_ERR_CANNOT_POSTDATE
public static final int KDC_ERR_CANNOT_POSTDATE
KDC_ERR_NEVER_VALID
public static final int KDC_ERR_NEVER_VALID
KDC_ERR_POLICY
public static final int KDC_ERR_POLICY
KDC_ERR_BADOPTION
public static final int KDC_ERR_BADOPTION
KDC_ERR_ETYPE_NOSUPP
public static final int KDC_ERR_ETYPE_NOSUPP
KDC_ERR_SUMTYPE_NOSUPP
public static final int KDC_ERR_SUMTYPE_NOSUPP
KDC_ERR_PADATA_TYPE_NOSUPP
public static final int KDC_ERR_PADATA_TYPE_NOSUPP
KDC_ERR_TRTYPE_NOSUPP
public static final int KDC_ERR_TRTYPE_NOSUPP
KDC_ERR_CLIENT_REVOKED
public static final int KDC_ERR_CLIENT_REVOKED
KDC_ERR_SERVICE_REVOKED
public static final int KDC_ERR_SERVICE_REVOKED
KDC_ERR_TGT_REVOKED
public static final int KDC_ERR_TGT_REVOKED
KDC_ERR_CLIENT_NOTYET
public static final int KDC_ERR_CLIENT_NOTYET
KDC_ERR_SERVICE_NOTYET
public static final int KDC_ERR_SERVICE_NOTYET
KDC_ERR_KEY_EXPIRED
public static final int KDC_ERR_KEY_EXPIRED
KDC_ERR_PREAUTH_FAILED
public static final int KDC_ERR_PREAUTH_FAILED
KDC_ERR_PREAUTH_REQUIRED
public static final int KDC_ERR_PREAUTH_REQUIRED
KDC_ERR_SERVER_NOMATCH
public static final int KDC_ERR_SERVER_NOMATCH
KDC_ERR_MUST_USE_USER2USER
public static final int KDC_ERR_MUST_USE_USER2USER
KDC_ERR_PATH_NOT_ACCEPTED
public static final int KDC_ERR_PATH_NOT_ACCEPTED
KRB_AP_ERR_BAD_INTEGRITY
public static final int KRB_AP_ERR_BAD_INTEGRITY
KRB_AP_ERR_TKT_EXPIRED
public static final int KRB_AP_ERR_TKT_EXPIRED
KRB_AP_ERR_TKT_NYV
public static final int KRB_AP_ERR_TKT_NYV
KRB_AP_ERR_REPEAT
public static final int KRB_AP_ERR_REPEAT
KRB_AP_ERR_NOT_US
public static final int KRB_AP_ERR_NOT_US
KRB_AP_ERR_BADMATCH
public static final int KRB_AP_ERR_BADMATCH
KRB_AP_ERR_SKEW
public static final int KRB_AP_ERR_SKEW
KRB_AP_ERR_BADADDR
public static final int KRB_AP_ERR_BADADDR
KRB_AP_ERR_BADVERSION
public static final int KRB_AP_ERR_BADVERSION
KRB_AP_ERR_MSG_TYPE
public static final int KRB_AP_ERR_MSG_TYPE
KRB_AP_ERR_MODIFIED
public static final int KRB_AP_ERR_MODIFIED
KRB_AP_ERR_BADORDER
public static final int KRB_AP_ERR_BADORDER
KRB_AP_ERR_BADKEYVER
public static final int KRB_AP_ERR_BADKEYVER
KRB_AP_ERR_NOKEY
public static final int KRB_AP_ERR_NOKEY
KRB_AP_ERR_MUT_FAILED
public static final int KRB_AP_ERR_MUT_FAILED
KRB_AP_ERR_BADDIRECTION
public static final int KRB_AP_ERR_BADDIRECTION
KRB_AP_ERR_METHOD
public static final int KRB_AP_ERR_METHOD
KRB_AP_ERR_BADSEQ
public static final int KRB_AP_ERR_BADSEQ
KRB_AP_ERR_INAPP_CKSUM
public static final int KRB_AP_ERR_INAPP_CKSUM
KRB_AP_PATH_NOT_ACCEPTED
public static final int KRB_AP_PATH_NOT_ACCEPTED
KRB_ERR_GENERIC
public static final int KRB_ERR_GENERIC
KRB_ERR_FIELD_TOOLONG
public static final int KRB_ERR_FIELD_TOOLONG
KRB_IMPL_ERR_CONFIG
public static final int KRB_IMPL_ERR_CONFIG
KerberosError
public KerberosError(int code)
- Construct a KerberosException with a specific error code. The error
code must be one of the pre-defined error codes specified in this
class. If an error code outside the valid ranges is specified as the
parameter the code KRB_ERR_GENERIC is used.
- Parameters:
code
- The error code
KerberosError
public KerberosError()
- Default constructor
KerberosError
public KerberosError(String msg)
- Constructor with a detail message
- Parameters:
msg
- the detail message.
getErrorCode
public int getErrorCode()
- Returns the KrbError error code