org.openpermis.subject.format
Interface Decoder<T extends RoleAssignmentContext>

Type Parameters:
T - the context of the role assignment.
All Known Implementing Classes:
X509Decoder

public interface Decoder<T extends RoleAssignmentContext>

Decodes role assignments.

Since:
0.9.0

Nested Class Summary
static class Decoder.DecoderEntry<T extends RoleAssignmentContext>
          Contains a role assignment and the holder that holds it.
 
Method Summary
 Decoder.DecoderEntry<T> decode(InputStream inputStream, T context, SubjectIdentityNormalizer normalizer)
          Decodes a role assignment from the specified input stream.
 

Method Detail

decode

Decoder.DecoderEntry<T> decode(InputStream inputStream,
                               T context,
                               SubjectIdentityNormalizer normalizer)
                                                             throws DecodingException,
                                                                    IOException
Decodes a role assignment from the specified input stream.

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

Parameters:
inputStream - 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