APIdia Launch Partner
Top Description Fields Constructors Methods
sun.security.krb5.internal

public Class TransitedEncoding

extends Object
Class Inheritance
Imports
sun.security.util.*, sun.security.krb5.Asn1Exception, java.io.IOException, java.math.BigInteger

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

Modifier and TypeField and Description
public byte[]
public int

Constructor Summary

AccessConstructor and Description
public
TransitedEncoding(int type, byte[] cont)

public
TransitedEncoding(DerValue
a Der-encoded data.
encoding
)

Constructs a TransitedEncoding object.

Method Summary

Modifier and TypeMethod and Description
public byte[]

Returns:

the byte array of the encoded TransitedEncoding object.
asn1Encode
()

Encodes a TransitedEncoding object.

public static TransitedEncoding

Returns:

an instance of TransitedEncoding.
parse
(DerInputStream
the Der input stream value, which contains one or more marshaled value.
data
,
byte
tag number.
explicitTag
,
boolean
indicate if this data field is optional
optional
)

Parse (unmarshal) a TransitedEncoding object from a DER input stream.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

contentsback to summary
public byte[] contents
trTypeback to summary
public int trType

Constructor Detail

TransitedEncodingback to summary
public TransitedEncoding(int type, byte[] cont)
TransitedEncodingback to summary
public TransitedEncoding(DerValue encoding) throws Asn1Exception, IOException

Constructs a TransitedEncoding object.

Parameters
encoding:DerValue

a Der-encoded data.

Exceptions
Asn1Exception:
if an error occurs while decoding an ASN1 encoded data.
IOException:
if an I/O error occurs while reading encoded data.

Method Detail

asn1Encodeback to summary
public byte[] asn1Encode() throws Asn1Exception, IOException

Encodes a TransitedEncoding object.

Returns:byte[]

the byte array of the encoded TransitedEncoding object.

Exceptions
Asn1Exception:
if an error occurs while decoding an ASN1 encoded data.
IOException:
if an I/O error occurs while reading encoded data.
parseback to summary
public static TransitedEncoding parse(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:DerInputStream

the Der input stream value, which contains one or more marshaled value.

explicitTag:byte

tag number.

optional:boolean

indicate if this data field is optional

Returns:TransitedEncoding

an instance of TransitedEncoding.

Exceptions
Asn1Exception:
on error.