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

public Class LastReq

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

Implements the ASN.1 LastReq type.
LastReq         ::=     SEQUENCE OF SEQUENCE {
        lr-type         [0] Int32,
        lr-value        [1] KerberosTime
}

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 LastReqEntry[]

Constructor Summary

AccessConstructor and Description
public
LastReq(LastReqEntry[] entries)

public
LastReq(DerValue
a Der-encoded data.
encoding
)

Constructs a LastReq object.

Method Summary

Modifier and TypeMethod and Description
public byte[]

Returns:

the byte array of encoded LastReq object.
asn1Encode
()

Encodes an LastReq object.

public static LastReq

Returns:

an instance of LastReq.
parse
(DerInputStream
the Der input stream value, which contains one or more marshaled value.
data
,
byte
tag number.
explicitTag
,
boolean
indicates if this data field is optional
optional
)

Parse (unmarshal) a last request from a DER input stream.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

entryback to summary
private LastReqEntry[] entry

Constructor Detail

LastReqback to summary
public LastReq(LastReqEntry[] entries) throws IOException
LastReqback to summary
public LastReq(DerValue encoding) throws Asn1Exception, IOException

Constructs a LastReq object.

Parameters
encoding:DerValue

a Der-encoded data.

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

Method Detail

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

Encodes an LastReq object.

Returns:byte[]

the byte array of encoded LastReq object.

Exceptions
Asn1Exception:
if an error occurs while decoding an ASN1 encoded data.
IOException:
if an I/O error occurs while reading encoded data.
parseback to summary
public static LastReq parse(DerInputStream data, byte explicitTag, boolean optional) throws Asn1Exception, IOException

Parse (unmarshal) a last request 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:DerInputStream

the Der input stream value, which contains one or more marshaled value.

explicitTag:byte

tag number.

optional:boolean

indicates if this data field is optional

Returns:LastReq

an instance of LastReq.

Exceptions
Asn1Exception:
on error.