sun.security.mule.krb5.internal
Class ETypeInfo2

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

public class ETypeInfo2
extends Object

Implements the ASN.1 ETYPE-INFO-ENTRY type. ETYPE-INFO2-ENTRY ::= SEQUENCE { etype [0] Int32, salt [1] KerberosString OPTIONAL, s2kparams [2] OCTET STRING OPTIONAL }

Author:
Seema Malkani

Constructor Summary
ETypeInfo2(sun.security.util.DerValue encoding)
          Constructs a ETypeInfo2 object.
ETypeInfo2(int etype, byte[] salt, byte[] s2kparams)
           
 
Method Summary
 byte[] asn1Encode()
          Encodes this object to an OutputStream.
 Object clone()
           
 int getEType()
           
 byte[] getParams()
           
 byte[] getSalt()
           
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ETypeInfo2

public ETypeInfo2(int etype,
                  byte[] salt,
                  byte[] s2kparams)

ETypeInfo2

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

clone

public Object clone()
Overrides:
clone in class Object

asn1Encode

public byte[] asn1Encode()
                  throws Asn1Exception,
                         IOException
Encodes this object to an OutputStream.

Returns:
byte array of the encoded data.
Throws:
IOException - if an I/O error occurs while reading encoded data.
Asn1Exception - on encoding errors.

getEType

public int getEType()

getSalt

public byte[] getSalt()

getParams

public byte[] getParams()


Copyright © 2013. All Rights Reserved.