APIdia Launch Partner
Top Description Fields Constructors Methods
sun.security.krb5.internal

public Class EncKrbCredPart

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

Implements the ASN.1 EncKrbCredPart type.
EncKrbCredPart  ::= [APPLICATION 29] SEQUENCE {
        ticket-info     [0] SEQUENCE OF KrbCredInfo,
        nonce           [1] UInt32 OPTIONAL,
        timestamp       [2] KerberosTime OPTIONAL,
        usec            [3] Microseconds OPTIONAL,
        s-address       [4] HostAddress OPTIONAL,
        r-address       [5] HostAddress 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
private Integer
private HostAddresses
private HostAddress
public KrbCredInfo[]
public KerberosTime
private Integer

Constructor Summary

AccessConstructor and Description
public
EncKrbCredPart(KrbCredInfo[] new_ticketInfo, KerberosTime new_timeStamp, Integer new_usec, Integer new_nonce, HostAddress new_sAddress, HostAddresses new_rAddress)

public
EncKrbCredPart(byte[] data)

public

Method Summary

Modifier and TypeMethod and Description
public byte[]

Returns:

byte array of encoded EncKrbCredPart object.
asn1Encode
()

Encodes an EncKrbCredPart object.

private void
init(DerValue
a single DER-encoded value.
encoding
)

Initializes an EncKrbCredPart object.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

nonceback to summary
private Integer nonce
rAddressback to summary
private HostAddresses rAddress
sAddressback to summary
private HostAddress sAddress
ticketInfoback to summary
public KrbCredInfo[] ticketInfo
timeStampback to summary
public KerberosTime timeStamp
usecback to summary
private Integer usec

Constructor Detail

EncKrbCredPartback to summary
public EncKrbCredPart(KrbCredInfo[] new_ticketInfo, KerberosTime new_timeStamp, Integer new_usec, Integer new_nonce, HostAddress new_sAddress, HostAddresses new_rAddress) throws IOException
EncKrbCredPartback to summary
public EncKrbCredPart(byte[] data) throws Asn1Exception, IOException, RealmException
EncKrbCredPartback to summary
public EncKrbCredPart(DerValue encoding) throws Asn1Exception, IOException, RealmException

Method Detail

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

Encodes an EncKrbCredPart object.

Returns:byte[]

byte array of encoded EncKrbCredPart object.

Exceptions
Asn1Exception:
if an error occurs while decoding an ASN1 encoded data.
IOException:
if an I/O error occurs while reading encoded data.
initback to summary
private void init(DerValue encoding) throws Asn1Exception, IOException, RealmException

Initializes an EncKrbCredPart 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.
RealmException:
if an error occurs while parsing a Realm object.