sun.security.mule.krb5.internal
Class TransitedEncoding

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

public class TransitedEncoding
extends Object

Implements the ASN.1 TransitedEncoding type.

TransitedEncoding ::= SEQUENCE { tr-type [0] Int32 -- must be registered --, contents [1] OCTET STRING }

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


Field Summary
 byte[] contents
           
 int trType
           
 
Constructor Summary
TransitedEncoding(sun.security.util.DerValue encoding)
          Constructs a TransitedEncoding object.
TransitedEncoding(int type, byte[] cont)
           
 
Method Summary
 byte[] asn1Encode()
          Encodes a TransitedEncoding object.
static TransitedEncoding parse(sun.security.util.DerInputStream data, byte explicitTag, boolean optional)
          Parse (unmarshal) a TransitedEncoding object from a DER input stream.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

trType

public int trType

contents

public byte[] contents
Constructor Detail

TransitedEncoding

public TransitedEncoding(int type,
                         byte[] cont)

TransitedEncoding

public TransitedEncoding(sun.security.util.DerValue encoding)
                  throws Asn1Exception,
                         IOException
Constructs a TransitedEncoding 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 a TransitedEncoding object.

Returns:
the byte array of the encoded TransitedEncoding 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 TransitedEncoding parse(sun.security.util.DerInputStream data,
                                      byte explicitTag,
                                      boolean optional)
                               throws Asn1Exception,
                                      IOException
Parse (unmarshal) a TransitedEncoding object 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 - indicate if this data field is optional
Returns:
an instance of TransitedEncoding.
Throws:
Asn1Exception - on error.
IOException


Copyright © 2013. All Rights Reserved.