sun.security.mule.krb5.internal
Class LastReq

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

public class LastReq
extends Object

Implements the ASN.1 LastReq type.

LastReq ::= SEQUENCE OF SEQUENCE { lr-type [0] Int32, lr-value [1] KerberosTime }

This definition reflects the Network Working Group RFC 4120 specification available at http://www.ietf.org/rfc/rfc4120.txt.


Constructor Summary
LastReq(sun.security.util.DerValue encoding, Config kerberosConfig)
          Constructs a LastReq object.
LastReq(LastReqEntry[] entries, Config kerberosConfig)
           
 
Method Summary
 byte[] asn1Encode()
          Encodes an LastReq object.
static LastReq parse(sun.security.util.DerInputStream data, byte explicitTag, boolean optional, Config kerberosConfig)
          Parse (unmarshal) a last request from a DER input stream.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LastReq

public LastReq(LastReqEntry[] entries,
               Config kerberosConfig)
        throws IOException
Throws:
IOException

LastReq

public LastReq(sun.security.util.DerValue encoding,
               Config kerberosConfig)
        throws Asn1Exception,
               IOException
Constructs a LastReq object.

Parameters:
encoding - a Der-encoded data.
Throws:
Asn1Exception - if an error occurs while decoding an ASN1 encoded data.
IOException - if an I/O error occurs while reading encoded data.
Method Detail

asn1Encode

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

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

parse

public static LastReq parse(sun.security.util.DerInputStream data,
                            byte explicitTag,
                            boolean optional,
                            Config kerberosConfig)
                     throws Asn1Exception,
                            IOException
Parse (unmarshal) a last request from a DER input stream. This form parsing might be used when expanding a value which is part of a constructed sequence and uses explicitly tagged type.

Parameters:
data - the Der input stream value, which contains one or more marshaled value.
explicitTag - tag number.
optional - indicates if this data field is optional
Returns:
an instance of LastReq.
Throws:
Asn1Exception - on error.
IOException


Copyright © 2013. All Rights Reserved.