Top Description Fields Constructors Methods
sun.security.krb5.internal

public Class EncAPRepPart

extends Object
Class Inheritance
Imports
sun.security.krb5.*, sun.security.util.*, java.util.ArrayList, java.io.IOException, java.math.BigInteger

Implements the ASN.1 EncAPRepPart type.
EncAPRepPart ::= [APPLICATION 27] SEQUENCE {
     ctime           [0] KerberosTime,
     cusec           [1] Microseconds,
     subkey          [2] EncryptionKey OPTIONAL,
     seq-number      [3] UInt32 OPTIONAL
}

This definition reflects the Network Working Group RFC 4120 specification available at http://www.ietf.org/rfc/rfc4120.txt.

Field Summary

Modifier and TypeField and Description
public KerberosTime
public int
pack-priv Integer
pack-priv EncryptionKey

Constructor Summary

AccessConstructor and Description
public
EncAPRepPart(KerberosTime new_ctime, int new_cusec, EncryptionKey new_subKey, Integer new_seqNumber)

public
EncAPRepPart(byte[] data)

public

Method Summary

Modifier and TypeMethod and Description
public byte[]

Returns:

byte array of encoded EncAPRepPart object.
asn1Encode
()

Encodes an EncAPRepPart object.

public final Integer
public final EncryptionKey
private void
init(DerValue
a single DER-encoded value.
encoding
)

Initializes an EncaPRepPart object.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

ctimeback to summary
public KerberosTime ctime
cusecback to summary
public int cusec
seqNumberback to summary
pack-priv Integer seqNumber
subKeyback to summary
pack-priv EncryptionKey subKey

Constructor Detail

EncAPRepPartback to summary
public EncAPRepPart(KerberosTime new_ctime, int new_cusec, EncryptionKey new_subKey, Integer new_seqNumber)
EncAPRepPartback to summary
public EncAPRepPart(byte[] data) throws Asn1Exception, IOException
EncAPRepPartback to summary
public EncAPRepPart(DerValue encoding) throws Asn1Exception, IOException

Method Detail

asn1Encodeback to summary
public byte[] asn1Encode() throws Asn1Exception, IOException

Encodes an EncAPRepPart object.

Returns:byte[]

byte array of encoded EncAPRepPart object.

Exceptions
Asn1Exception:
if an error occurs while decoding an ASN1 encoded data.
IOException:
if an I/O error occurs while reading encoded data.
getSeqNumberback to summary
public final Integer getSeqNumber()
getSubKeyback to summary
public final EncryptionKey getSubKey()
initback to summary
private void init(DerValue encoding) throws Asn1Exception, IOException

Initializes an EncaPRepPart object.

Parameters
encoding:DerValue

a single DER-encoded value.

Exceptions
Asn1Exception:
if an error occurs while decoding an ASN1 encoded data.
IOException:
if an I/O error occurs while reading encoded data.