sun.security.mule.krb5.internal
Class APReq

java.lang.Object
  extended by sun.security.mule.krb5.internal.APReq

public class APReq
extends Object

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
 APOptions apOptions
           
 EncryptedData authenticator
           
 int msgType
           
 int pvno
           
 Ticket ticket
           
 
Constructor Summary
APReq(APOptions new_apOptions, Ticket new_ticket, EncryptedData new_authenticator)
           
APReq(byte[] data)
           
APReq(sun.security.util.DerValue encoding)
           
 
Method Summary
 byte[] asn1Encode()
          Encodes an APReq object.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

pvno

public int pvno

msgType

public int msgType

apOptions

public APOptions apOptions

ticket

public Ticket ticket

authenticator

public EncryptedData authenticator
Constructor Detail

APReq

public APReq(APOptions new_apOptions,
             Ticket new_ticket,
             EncryptedData new_authenticator)

APReq

public APReq(byte[] data)
      throws Asn1Exception,
             IOException,
             KrbApErrException,
             RealmException
Throws:
Asn1Exception
IOException
KrbApErrException
RealmException

APReq

public APReq(sun.security.util.DerValue encoding)
      throws Asn1Exception,
             IOException,
             KrbApErrException,
             RealmException
Throws:
Asn1Exception
IOException
KrbApErrException
RealmException
Method Detail

asn1Encode

public byte[] asn1Encode()
                  throws Asn1Exception,
                         IOException
Encodes an APReq object.

Returns:
byte array of encoded APReq object.
Throws:
Asn1Exception - if an error occurs while decoding an ASN1 encoded data.
IOException - if an I/O error occurs while reading encoded data.


Copyright © 2013. All Rights Reserved.