public class

ETypeInfo2

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

Class Overview

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

Summary

Constants
byte TAG_TYPE
byte TAG_VALUE1
byte TAG_VALUE2
Fields
private int etype
private byte[] s2kparams
private String saltStr
Public Constructors
ETypeInfo2(int etype, byte[] salt, byte[] s2kparams)
ETypeInfo2(DerValue encoding)
Constructs a ETypeInfo2 object.
Public Methods
byte[] asn1Encode()
Encodes this object to an OutputStream.
Object clone()
int getEType()
byte[] getParams()
byte[] getSalt()
[Expand]
Inherited Methods
From class java.lang.Object

Constants

private static final byte TAG_TYPE

Constant Value: 0 (0x00000000)

private static final byte TAG_VALUE1

Constant Value: 1 (0x00000001)

private static final byte TAG_VALUE2

Constant Value: 2 (0x00000002)

Fields

private int etype

private byte[] s2kparams

private String saltStr

Public Constructors

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

Parameters
etype
salt
s2kparams

public ETypeInfo2 (DerValue encoding)

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.

Public Methods

public byte[] asn1Encode ()

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.

public Object clone ()

public int getEType ()

public byte[] getParams ()

public byte[] getSalt ()