public class

TransitedEncoding

extends Object
java.lang.Object
   ↳ sun.security.mule.krb5.internal.TransitedEncoding

Class Overview

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.

Summary

Fields
public byte[] contents
public int trType
Public Constructors
TransitedEncoding(int type, byte[] cont)
TransitedEncoding(DerValue encoding)
Constructs a TransitedEncoding object.
Public Methods
byte[] asn1Encode()
Encodes a TransitedEncoding object.
static TransitedEncoding parse(DerInputStream data, byte explicitTag, boolean optional)
Parse (unmarshal) a TransitedEncoding object from a DER input stream.
[Expand]
Inherited Methods
From class java.lang.Object

Fields

public byte[] contents

public int trType

Public Constructors

public TransitedEncoding (int type, byte[] cont)

Parameters
type
cont

public TransitedEncoding (DerValue encoding)

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.

Public Methods

public byte[] asn1Encode ()

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.

public static TransitedEncoding parse (DerInputStream data, byte explicitTag, boolean optional)

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