| java.lang.Object |
| ↳ |
sun.security.mule.krb5.internal.KRBSafeBody |
Class Overview
Implements the ASN.1 KRBSafeBody type.
KRB-SAFE-BODY ::= SEQUENCE {
user-data [0] OCTET STRING,
timestamp [1] KerberosTime OPTIONAL,
usec [2] Microseconds OPTIONAL,
seq-number [3] UInt32 OPTIONAL,
s-address [4] HostAddress,
r-address [5] HostAddress OPTIONAL
}
This definition reflects the Network Working Group RFC 4120
specification available at
http://www.ietf.org/rfc/rfc4120.txt.
Summary
| Public Methods |
|
byte[]
|
asn1Encode()
Encodes an KRBSafeBody object.
|
|
static
KRBSafeBody
|
parse(DerInputStream data, byte explicitTag, boolean optional)
Parse (unmarshal) a KRBSafeBody from a DER input stream.
|
|
[Expand]
Inherited Methods |
From class
java.lang.Object
|
Object
|
clone()
|
|
boolean
|
equals(Object arg0)
|
|
void
|
finalize()
|
|
final
Class<?>
|
getClass()
|
|
int
|
hashCode()
|
|
final
void
|
notify()
|
|
final
void
|
notifyAll()
|
|
String
|
toString()
|
|
final
void
|
wait()
|
|
final
void
|
wait(long arg0, int arg1)
|
|
final
void
|
wait(long arg0)
|
|
Fields
Public Constructors
public
KRBSafeBody
(byte[] new_userData, KerberosTime new_timestamp, Integer new_usec, Integer new_seqNumber, HostAddress new_sAddress, HostAddress new_rAddress, Config kerberosConfig)
Parameters
| new_userData
| |
| new_timestamp
| |
| new_usec
| |
| new_seqNumber
| |
| new_sAddress
| |
| new_rAddress
| |
| kerberosConfig
| |
public
KRBSafeBody
(DerValue encoding)
Constructs a KRBSafeBody object.
Parameters
| encoding
| A Der-encoded data. |
Throws
| Asn1Exception
| if an error occurs while decoding an ASN1 encoded data. |
| IOException
| if an I/O error occurs while reading encoded data.
|
Public Methods
public
byte[]
asn1Encode
()
Encodes an KRBSafeBody object.
Returns
- the byte array of encoded KRBSafeBody object.
Throws
| Asn1Exception
| if an error occurs while decoding an ASN1 encoded data. |
| IOException
| if an I/O error occurs while reading encoded data.
|
public
static
KRBSafeBody
parse
(DerInputStream data, byte explicitTag, boolean optional)
Parse (unmarshal) a KRBSafeBody from a DER input stream. This form
parsing might be used when expanding a value which is part of
a constructed sequence and uses explicitly tagged type.
Parameters
| data
| The Der input stream value, which contains one or more marshaled value. |
| explicitTag
| Tag number. |
| optional
| Indicates if this data field is optional |
Returns
- an instance of KRBSafeBody.