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

public Class KrbApRep

extends Object
Class Inheritance
Imports
sun.security.krb5.internal.*, sun.security.krb5.internal.crypto.KeyUsage, sun.security.util.*, java.io.IOException

This class encapsulates a KRB-AP-REP sent from the service to the client.

Field Summary

Modifier and TypeField and Description
private APRep
private EncAPRepPart
private byte[]
private byte[]

Constructor Summary

AccessConstructor and Description
public
KrbApRep(KrbApReq incomingReq, boolean useSeqNumber, EncryptionKey subKey)

Constructs a KRB-AP-REP to send to a client.

public
KrbApRep(byte[] message, Credentials tgtCreds, KrbApReq outgoingReq)

Constructs a KRB-AP-REQ from the bytes received from a service.

private
KrbApRep(byte[]
a byte array of reply message.
msg
,
Credentials
client's credential.
tgs_creds
)

Constructs a KrbApRep object.

private
KrbApRep(DerValue encoding, Credentials
client's credential.
tgs_creds
)

Constructs a KrbApRep object.

Method Summary

Modifier and TypeMethod and Description
private void
private void
createMessage(EncryptionKey key, KerberosTime ctime, int cusec, EncryptionKey subKey, SeqNumber seqNumber)

public byte[]
getMessage()

Returns the ASN.1 encoding that should be sent to the peer.

public Integer
getSeqNumber()

Returns the optional sequence number stored in the this message.

public EncryptionKey
getSubKey()

Returns the optional subkey stored in this message.

private void
init(KrbApReq apReq, EncryptionKey subKey, SeqNumber seqNumber)

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

apRepMessgback to summary
private APRep apRepMessg
encPartback to summary
private EncAPRepPart encPart
ibufback to summary
private byte[] ibuf
obufback to summary
private byte[] obuf

Constructor Detail

KrbApRepback to summary
public KrbApRep(KrbApReq incomingReq, boolean useSeqNumber, EncryptionKey subKey) throws KrbException, IOException

Constructs a KRB-AP-REP to send to a client.

KrbApRepback to summary
public KrbApRep(byte[] message, Credentials tgtCreds, KrbApReq outgoingReq) throws KrbException, IOException

Constructs a KRB-AP-REQ from the bytes received from a service.

KrbApRepback to summary
private KrbApRep(byte[] msg, Credentials tgs_creds) throws KrbException, IOException

Constructs a KrbApRep object.

Parameters
msg:byte[]

a byte array of reply message.

tgs_creds:Credentials

client's credential.

KrbApRepback to summary
private KrbApRep(DerValue encoding, Credentials tgs_creds) throws KrbException, IOException

Constructs a KrbApRep object.

Parameters
tgs_creds:Credentials

client's credential.

Method Detail

authenticateback to summary
private void authenticate(KrbApReq apReq) throws KrbException, IOException
createMessageback to summary
private void createMessage(EncryptionKey key, KerberosTime ctime, int cusec, EncryptionKey subKey, SeqNumber seqNumber) throws Asn1Exception, IOException, KdcErrException, KrbCryptoException
getMessageback to summary
public byte[] getMessage()

Returns the ASN.1 encoding that should be sent to the peer.

getSeqNumberback to summary
public Integer getSeqNumber()

Returns the optional sequence number stored in the this message. Returns null if none is stored.

getSubKeyback to summary
public EncryptionKey getSubKey()

Returns the optional subkey stored in this message. Returns null if none is stored.

initback to summary
private void init(KrbApReq apReq, EncryptionKey subKey, SeqNumber seqNumber) throws KrbException, IOException