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

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

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

Version:
$Rev: 587531 $, $Date: 2007-10-23 16:59:10 +0200 (Tue, 23 Oct 2007) $
Author:
Apache Directory Project

Constructor Summary
AuthorizationDataDecoder()
           
 
Method Summary
 Encodable decode(byte[] encodedAuthData)
          Decodes the byte array into an Encodable object.
protected static AuthorizationDataEntry decodeAuthorizationEntry(org.apache.directory.shared.asn1.der.DERSequence sequence)
           
protected static AuthorizationData decodeSequence(org.apache.directory.shared.asn1.der.DERSequence sequence)
          AuthorizationData ::= SEQUENCE OF SEQUENCE { ad-type[0] INTEGER, ad-data[1] OCTET STRING }
 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

AuthorizationDataDecoder

public AuthorizationDataDecoder()
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[] encodedAuthData)
                 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

decodeSequence

protected static AuthorizationData decodeSequence(org.apache.directory.shared.asn1.der.DERSequence sequence)
AuthorizationData ::= SEQUENCE OF SEQUENCE { ad-type[0] INTEGER, ad-data[1] OCTET STRING }


decodeAuthorizationEntry

protected static AuthorizationDataEntry decodeAuthorizationEntry(org.apache.directory.shared.asn1.der.DERSequence sequence)


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