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

public Class APReq

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

Implements the ASN.1 AP-REQ type.
AP-REQ               ::= [APPLICATION 14] SEQUENCE {
     pvno            [0] INTEGER (5),
     msg-type        [1] INTEGER (14),
     ap-options      [2] APOptions,
     ticket          [3] Ticket,
     authenticator   [4] EncryptedData -- Authenticator
}

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 APOptions
public EncryptedData
public int
public int
public Ticket

Constructor Summary

AccessConstructor and Description
public
APReq(APOptions new_apOptions, Ticket new_ticket, EncryptedData new_authenticator)

public
APReq(byte[] data)

public
APReq(DerValue encoding)

Method Summary

Modifier and TypeMethod and Description
public byte[]

Returns:

byte array of encoded APReq object.
asn1Encode
()

Encodes an APReq object.

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

Initializes an APReq object.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

apOptionsback to summary
public APOptions apOptions
authenticatorback to summary
public EncryptedData authenticator
msgTypeback to summary
public int msgType
pvnoback to summary
public int pvno
ticketback to summary
public Ticket ticket

Constructor Detail

APReqback to summary
public APReq(APOptions new_apOptions, Ticket new_ticket, EncryptedData new_authenticator)
APReqback to summary
public APReq(byte[] data) throws Asn1Exception, IOException, KrbApErrException, RealmException
APReqback to summary
public APReq(DerValue encoding) throws Asn1Exception, IOException, KrbApErrException, RealmException

Method Detail

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

Encodes an APReq object.

Returns:byte[]

byte array of encoded APReq 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, KrbApErrException, RealmException

Initializes an APReq 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.
KrbApErrException:
if the value read from the DER-encoded data stream does not match the pre-defined value.
RealmException:
if an error occurs while parsing a Realm object.