sun.security.mule.krb5.internal
Class KRBSafeBody
java.lang.Object
sun.security.mule.krb5.internal.KRBSafeBody
public class KRBSafeBody
- extends Object
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.
|
Method Summary |
byte[] |
asn1Encode()
Encodes an KRBSafeBody object. |
static KRBSafeBody |
parse(sun.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 |
userData
public byte[] userData
timestamp
public KerberosTime timestamp
usec
public Integer usec
seqNumber
public Integer seqNumber
sAddress
public HostAddress sAddress
rAddress
public HostAddress rAddress
KRBSafeBody
public KRBSafeBody(byte[] new_userData,
KerberosTime new_timestamp,
Integer new_usec,
Integer new_seqNumber,
HostAddress new_sAddress,
HostAddress new_rAddress,
Config kerberosConfig)
KRBSafeBody
public KRBSafeBody(sun.security.util.DerValue encoding)
throws Asn1Exception,
IOException
- 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.
asn1Encode
public byte[] asn1Encode()
throws Asn1Exception,
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.
IOException - if an I/O error occurs while reading encoded data.
parse
public static KRBSafeBody parse(sun.security.util.DerInputStream data,
byte explicitTag,
boolean optional)
throws Asn1Exception,
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.
IOException
Copyright © 2013. All Rights Reserved.