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

public Class APRep

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

Implements the ASN.1 AP-REP type.
AP-REP          ::= [APPLICATION 15] SEQUENCE {
        pvno            [0] INTEGER (5),
        msg-type        [1] INTEGER (15),
        enc-part        [2] EncryptedData -- EncAPRepPart
}

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

Constructor Summary

AccessConstructor and Description
public
APRep(EncryptedData new_encPart)

public
APRep(byte[] data)

public
APRep(DerValue encoding)

Method Summary

Modifier and TypeMethod and Description
public byte[]

Returns:

byte array of encoded APRep object.
asn1Encode
()

Encodes an APRep object.

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

Initializes an APRep object.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

encPartback to summary
public EncryptedData encPart
msgTypeback to summary
public int msgType
pvnoback to summary
public int pvno

Constructor Detail

APRepback to summary
public APRep(EncryptedData new_encPart)
APRepback to summary
public APRep(byte[] data) throws Asn1Exception, KrbApErrException, IOException
APRepback to summary
public APRep(DerValue encoding) throws Asn1Exception, KrbApErrException, IOException

Method Detail

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

Encodes an APRep object.

Returns:byte[]

byte array of encoded APRep 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, KrbApErrException, IOException

Initializes an APRep object.

Parameters
encoding:DerValue

a single DER-encoded value.

Exceptions
Asn1Exception:
if an error occurs while decoding an ASN1 encoded data.
KrbApErrException:
if the value read from the DER-encoded data stream does not match the pre-defined value.
IOException:
if an I/O error occurs while reading encoded data.