com.ibm.security.krb5.internal

Class TransitedEncoding

  1. java.lang.Object
  2. extended bycom.ibm.security.krb5.internal.TransitedEncoding

  1. public class TransitedEncoding
  2. extends java.lang.Object
Implements the ASN.1 TransitedEncoding type. TransitedEncoding ::= SEQUENCE { tr-type[0] INTEGER, -- must be registered contents[1] OCTET STRING }

This definition reflects the Network Working Group RFC 1510 specifications dated September 1993 and available at http://www.ietf.org/rfc/rfc1510.txt.


Constructor Summary

Constructor and Description
TransitedEncoding(com.ibm.security.util.DerValue encoding)
Constructs a TransitedEncoding object.
TransitedEncoding(int type,byte[] cont)

Method Summary

Modifier and Type Method and Description
  1. byte[]
asn1Encode()
Encodes a TransitedEncoding object.
  1. byte[]
getEncoding()
Returns the transited encoding.
  1. int
getType()
Returns the type of transited encoding.
  1. static
  2. TransitedEncoding
parse(com.ibm.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

Constructor Detail

TransitedEncoding

  1. public TransitedEncoding(int type,
  2. byte[] cont)

TransitedEncoding

  1. public TransitedEncoding(com.ibm.security.util.DerValue encoding)
  2. throws Asn1Exception
  3. java.io.IOException
Constructs a TransitedEncoding object.
Parameters:
encoding - a Der-encoded data.
Throws:
Asn1Exception - if an error occurs while decoding an ASN1 encoded data.
java.io.IOException - if an I/O error occurs while reading encoded data.

Method Detail

asn1Encode

  1. public byte[] asn1Encode()
  2. throws Asn1Exception
  3. java.io.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.
java.io.IOException - if an I/O error occurs while reading encoded data.

parse

  1. public static TransitedEncoding parse( com.ibm.security.util.DerInputStream data,
  2. byte explicitTag,
  3. boolean optional)
  4. throws Asn1Exception
  5. java.io.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.
java.io.IOException

getType

  1. public int getType()
Returns the type of transited encoding.
Returns:
the transited encoding type.

getEncoding

  1. public byte[] getEncoding()
Returns the transited encoding.
Returns:
a byte array containing the transited encoding.