com.ibm.security.krb5.internal

Class MethodData

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

  1. public class MethodData
  2. extends java.lang.Object
Implements the ASN.1 EncKrbPrivPart type. METHOD-DATA ::= SEQUENCE { method-type[0] INTEGER, method-data[1] OCTET STRING OPTIONAL }

Field Summary

Modifier and Type Field and Description
  1. byte[]
methodData
  1. int
methodType

Constructor Summary

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

Method Summary

Modifier and Type Method and Description
  1. byte[]
asn1Encode()
Encodes an MethodData object.
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

Field Detail

methodType

  1. public int methodType

methodData

  1. public byte[] methodData

Constructor Detail

MethodData

  1. public MethodData(int type,
  2. byte[] data)

MethodData

  1. public MethodData(com.ibm.security.util.DerValue encoding)
  2. throws Asn1Exception
  3. java.io.IOException
Constructs a MethodData 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 an MethodData object.
Returns:
the byte array of encoded MethodData 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.