org.openpermis.subject.format.x509
Class X509Decoder<T extends RoleAssignmentContext>
java.lang.Object
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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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
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