sun.security.mule.krb5.internal
Class KRBError
java.lang.Object
sun.security.mule.krb5.internal.KRBError
- All Implemented Interfaces:
- Serializable
public class KRBError
- extends Object
- implements Serializable
Implements the ASN.1 KRBError type.
KRB-ERROR ::= [APPLICATION 30] SEQUENCE {
pvno [0] INTEGER (5),
msg-type [1] INTEGER (30),
ctime [2] KerberosTime OPTIONAL,
cusec [3] Microseconds OPTIONAL,
stime [4] KerberosTime,
susec [5] Microseconds,
error-code [6] Int32,
crealm [7] Realm OPTIONAL,
cname [8] PrincipalName OPTIONAL,
realm [9] Realm -- service realm --,
sname [10] PrincipalName -- service name --,
e-text [11] KerberosString OPTIONAL,
e-data [12] OCTET STRING OPTIONAL
}
METHOD-DATA ::= SEQUENCE OF PA-DATA
TYPED-DATA ::= SEQUENCE SIZE (1..MAX) OF SEQUENCE {
data-type [0] Int32,
data-value [1] OCTET STRING OPTIONAL
}
This definition reflects the Network Working Group RFC 4120
specification available at
http://www.ietf.org/rfc/rfc4120.txt.
- See Also:
- Serialized Form
|
Constructor Summary |
KRBError(APOptions new_apOptions,
KerberosTime new_cTime,
Integer new_cuSec,
KerberosTime new_sTime,
Integer new_suSec,
int new_errorCode,
Realm new_crealm,
PrincipalName new_cname,
Realm new_realm,
PrincipalName new_sname,
String new_eText,
byte[] new_eData,
Checksum new_eCksum,
Config kerberosConfig)
|
KRBError(APOptions new_apOptions,
KerberosTime new_cTime,
Integer new_cuSec,
KerberosTime new_sTime,
Integer new_suSec,
int new_errorCode,
Realm new_crealm,
PrincipalName new_cname,
Realm new_realm,
PrincipalName new_sname,
String new_eText,
byte[] new_eData,
Config kerberosConfig)
|
KRBError(byte[] data,
Config kerberosConfig)
|
KRBError(sun.security.util.DerValue encoding,
Config kerberosConfig)
|
KRBError
public KRBError(APOptions new_apOptions,
KerberosTime new_cTime,
Integer new_cuSec,
KerberosTime new_sTime,
Integer new_suSec,
int new_errorCode,
Realm new_crealm,
PrincipalName new_cname,
Realm new_realm,
PrincipalName new_sname,
String new_eText,
byte[] new_eData,
Config kerberosConfig)
throws IOException,
Asn1Exception
- Throws:
IOException
Asn1Exception
KRBError
public KRBError(APOptions new_apOptions,
KerberosTime new_cTime,
Integer new_cuSec,
KerberosTime new_sTime,
Integer new_suSec,
int new_errorCode,
Realm new_crealm,
PrincipalName new_cname,
Realm new_realm,
PrincipalName new_sname,
String new_eText,
byte[] new_eData,
Checksum new_eCksum,
Config kerberosConfig)
throws IOException,
Asn1Exception
- Throws:
IOException
Asn1Exception
KRBError
public KRBError(byte[] data,
Config kerberosConfig)
throws Asn1Exception,
RealmException,
KrbApErrException,
IOException
- Throws:
Asn1Exception
RealmException
KrbApErrException
IOException
KRBError
public KRBError(sun.security.util.DerValue encoding,
Config kerberosConfig)
throws Asn1Exception,
RealmException,
KrbApErrException,
IOException
- Throws:
Asn1Exception
RealmException
KrbApErrException
IOException
getServerTime
public final KerberosTime getServerTime()
getClientTime
public final KerberosTime getClientTime()
getServerMicroSeconds
public final Integer getServerMicroSeconds()
getClientMicroSeconds
public final Integer getClientMicroSeconds()
getErrorCode
public final int getErrorCode()
getEType
public final int getEType()
getSalt
public final byte[] getSalt()
getParams
public final byte[] getParams()
getErrorString
public final String getErrorString()
asn1Encode
public byte[] asn1Encode()
throws Asn1Exception,
IOException
- Encodes an KRBError object.
- Returns:
- the byte array of encoded KRBError object.
- Throws:
Asn1Exception - if an error occurs while decoding an ASN1 encoded data.
IOException - if an I/O error occurs while reading encoded data.
equals
public boolean equals(Object obj)
- Overrides:
equals in class Object
hashCode
public int hashCode()
- Overrides:
hashCode in class Object
Copyright © 2013. All Rights Reserved.