sun.security.mule.krb5
Class KrbApRep

java.lang.Object
  extended by sun.security.mule.krb5.KrbApRep

public class KrbApRep
extends Object

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


Constructor Summary
KrbApRep(byte[] message, Credentials tgtCreds, KrbApReq outgoingReq, Config kerberosConfig)
          Constructs a KRB-AP-REQ from the bytes received from a service.
KrbApRep(KrbApReq incomingReq, boolean useSeqNumber, boolean useSubKey, Config kerberosConfig)
          Constructs a KRB-AP-REP to send to a client.
 
Method Summary
 byte[] getMessage()
          Returns the ASN.1 encoding that should be sent to the peer.
 Integer getSeqNumber()
          Returns the optional sequence number stored in the this message.
 EncryptionKey getSubKey()
          Returns the optional subkey stored in this message.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

KrbApRep

public KrbApRep(KrbApReq incomingReq,
                boolean useSeqNumber,
                boolean useSubKey,
                Config kerberosConfig)
         throws KrbException,
                IOException
Constructs a KRB-AP-REP to send to a client.

Throws:
KrbException
IOException

KrbApRep

public KrbApRep(byte[] message,
                Credentials tgtCreds,
                KrbApReq outgoingReq,
                Config kerberosConfig)
         throws KrbException,
                IOException
Constructs a KRB-AP-REQ from the bytes received from a service.

Throws:
KrbException
IOException
Method Detail

getSubKey

public EncryptionKey getSubKey()
Returns the optional subkey stored in this message. Returns null if none is stored.


getSeqNumber

public Integer getSeqNumber()
Returns the optional sequence number stored in the this message. Returns null if none is stored.


getMessage

public byte[] getMessage()
Returns the ASN.1 encoding that should be sent to the peer.



Copyright © 2013. All Rights Reserved.