org.openpermis.subject.format
Interface Encoder

All Known Implementing Classes:
X509Encoder

public interface Encoder

Encodes role assignments.

Since:
0.9.0

Method Summary
 void encode(OutputStream outputStream, URI holder, URI issuer, Set<RoleDefinition> roles, Date validFrom, Date validTo)
          Encodes a role assignment to the specified output stream.
 

Method Detail

encode

void encode(OutputStream outputStream,
            URI holder,
            URI issuer,
            Set<RoleDefinition> roles,
            Date validFrom,
            Date validTo)
            throws EncodingException,
                   IOException
Encodes a role assignment to the specified output stream.

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

Parameters:
outputStream - the output stream to write the encoded role assignment.
holder - the holder of the role assignment.
issuer - the issuer of the role assignment.
roles - the issued roles of the role assignment.
validFrom - validity start of the role assignment.
validTo - validity end of the role assignment.
Throws:
EncodingException - signals a problem in encoding the role assignment.
IOException - signals a problem in writing to output 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