org.apache.directory.server.kerberos.shared.io.decoder
Class AuthenticatorDecoder

java.lang.Object
  extended by org.apache.directory.server.kerberos.shared.io.decoder.AuthenticatorDecoder
All Implemented Interfaces:
Decoder, DecoderFactory

public class AuthenticatorDecoder
extends java.lang.Object
implements Decoder, DecoderFactory

Version:
$Rev: 502338 $, $Date: 2007-02-01 20:59:43 +0100 (Do, 01 Feb 2007) $
Author:
Apache Directory Project

Constructor Summary
AuthenticatorDecoder()
           
 
Method Summary
 Encodable decode(byte[] encodedAuthenticator)
          Decodes the byte array into an Encodable object.
protected static Authenticator decode(org.apache.directory.shared.asn1.der.DERSequence sequence)
          -- Unencrypted authenticator Authenticator ::= [APPLICATION 2] SEQUENCE { authenticator-vno[0] INTEGER, crealm[1] Realm, cname[2] PrincipalName, cksum[3] Checksum OPTIONAL, cusec[4] INTEGER, ctime[5] KerberosTime, subkey[6] EncryptionKey OPTIONAL, seq-number[7] INTEGER OPTIONAL, authorization-data[8] AuthorizationData OPTIONAL }
 Decoder getDecoder()
          Returns the Decoder.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AuthenticatorDecoder

public AuthenticatorDecoder()
Method Detail

getDecoder

public Decoder getDecoder()
Description copied from interface: DecoderFactory
Returns the Decoder.

Specified by:
getDecoder in interface DecoderFactory
Returns:
The Decoder.

decode

public Encodable decode(byte[] encodedAuthenticator)
                 throws java.io.IOException
Description copied from interface: Decoder
Decodes the byte array into an Encodable object.

Specified by:
decode in interface Decoder
Returns:
The Encodable object.
Throws:
java.io.IOException

decode

protected static Authenticator decode(org.apache.directory.shared.asn1.der.DERSequence sequence)
-- Unencrypted authenticator Authenticator ::= [APPLICATION 2] SEQUENCE { authenticator-vno[0] INTEGER, crealm[1] Realm, cname[2] PrincipalName, cksum[3] Checksum OPTIONAL, cusec[4] INTEGER, ctime[5] KerberosTime, subkey[6] EncryptionKey OPTIONAL, seq-number[7] INTEGER OPTIONAL, authorization-data[8] AuthorizationData OPTIONAL }



Copyright © 2003-2009 Apache Software Foundation. All Rights Reserved.