org.openpermis.subject.format.x509
Class X509Decoder<T extends RoleAssignmentContext>

java.lang.Object
  extended by org.openpermis.subject.format.x509.X509Decoder<T>
Type Parameters:
T - the role assignment context.
All Implemented Interfaces:
Decoder<T>

public class X509Decoder<T extends RoleAssignmentContext>
extends Object
implements Decoder<T>

Decodes roles assignments from X509 attribute certificates.

Since:
0.9.0

Nested Class Summary
 
Nested classes/interfaces inherited from interface org.openpermis.subject.format.Decoder
Decoder.DecoderEntry<T extends RoleAssignmentContext>
 
Constructor Summary
X509Decoder(CertificateVerifier verifier)
          Creates a new X509 decoder.
 
Method Summary
 Decoder.DecoderEntry<T> decode(InputStream in, T context, SubjectIdentityNormalizer normalizer)
          Decodes a role assignment from the specified input stream.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

X509Decoder

public X509Decoder(CertificateVerifier verifier)
Creates a new X509 decoder.

Parameters:
verifier - the verifier used to verify the signature of X509 certificates.
Since:
0.9.0
Method Detail

decode

public Decoder.DecoderEntry<T> decode(InputStream in,
                                      T context,
                                      SubjectIdentityNormalizer normalizer)
                                                             throws DecodingException,
                                                                    IOException
Description copied from interface: Decoder
Decodes a role assignment from the specified input stream.

The input stream must be closed by the caller of this method.

Specified by:
decode in interface Decoder<T extends RoleAssignmentContext>
Parameters:
in - the input stream to read the role assignment from.
context - the context of the role assignment.
normalizer - to normalize holder and issuer identities.
Throws:
DecodingException - signals a problem in decoding the role assignment.
IOException - signals a problem in reading from input stream.
Since:
0.9.0


OpenPermis Role Based Access Control 0.9.0 (Build 16)
2009/08/13 07:16:59
Copyright (c) 2002-2007 Ergon Informatik AG