com.ibm.security.krb5.internal
Class KRBSafeBody
- java.lang.Object
com.ibm.security.krb5.internal.KRBSafeBody
- public class KRBSafeBody
- extends java.lang.Object
This definition reflects the Network Working Group RFC 1510 specifications dated September 1993 and available at http://www.ietf.org/rfc/rfc1510.txt.
Field Summary
Modifier and Type | Field and Description |
---|---|
rAddress
|
|
sAddress
|
|
|
seqNumber
|
timestamp
|
|
|
usec
|
|
userData
|
Constructor Summary
Constructor and Description |
---|
KRBSafeBody(byte[] new_userData,KerberosTime new_timestamp,java.lang.Integer new_usec,java.lang.Integer new_seqNumber,HostAddress new_sAddress,HostAddress new_rAddress)
|
KRBSafeBody(com.ibm.security.util.DerValue encoding)
Constructs a KRBSafeBody object.
|
Method Summary
Modifier and Type | Method and Description |
---|---|
|
asn1Encode()
Encodes an KRBSafeBody object.
|
|
parse(com.ibm.security.util.DerInputStream data,byte explicitTag,boolean optional)
Parse (unmarshal) a KRBSafeBody from a DER input stream.
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail
userData
- public byte[] userData
timestamp
- public KerberosTime timestamp
usec
- public java.lang.Integer usec
seqNumber
- public java.lang.Integer seqNumber
sAddress
- public HostAddress sAddress
rAddress
- public HostAddress rAddress
Constructor Detail
KRBSafeBody
- public KRBSafeBody(byte[] new_userData,
- KerberosTime new_timestamp,
- java.lang.Integer new_usec,
- java.lang.Integer new_seqNumber,
- HostAddress new_sAddress,
- HostAddress new_rAddress)
KRBSafeBody
- public KRBSafeBody(com.ibm.security.util.DerValue encoding)
- throws Asn1Exception
- java.io.IOException
Constructs a KRBSafeBody object.
Parameters:
encoding
- a Der-encoded data. Throws:
Asn1Exception
- if an error occurs while decoding an ASN1 encoded data. java.io.IOException
- if an I/O error occurs while reading encoded data. Method Detail
asn1Encode
- public byte[] asn1Encode()
- throws Asn1Exception
- java.io.IOException
Encodes an KRBSafeBody object.
Returns:
the byte array of encoded KRBSafeBody object.
Throws:
Asn1Exception
- if an error occurs while decoding an ASN1 encoded data. java.io.IOException
- if an I/O error occurs while reading encoded data. parse
- public static KRBSafeBody parse( com.ibm.security.util.DerInputStream data,
- byte explicitTag,
- boolean optional)
- throws Asn1Exception
- java.io.IOException
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.
Throws:
Asn1Exception
- on error. java.io.IOException