org.openpermis.examples.ejb.server
Class HelloWorldSubjectRepository

java.lang.Object
  extended by org.openpermis.repository.basic.AbstractSubjectRepository
      extended by org.openpermis.examples.ejb.server.HelloWorldSubjectRepository
All Implemented Interfaces:
org.openpermis.repository.SubjectRepository

public class HelloWorldSubjectRepository
extends org.openpermis.repository.basic.AbstractSubjectRepository

A subject repository implementation that reads certificates from the classpath.

Since:
0.3.0

Constructor Summary
HelloWorldSubjectRepository(org.openpermis.cert.CertificateVerifier certificateVerifier, String... entries)
          Creates a subject repository from a list of classpath entries.
 
Method Summary
 org.openpermis.Subject retrieveSubject(URI identity)
           
 
Methods inherited from class org.openpermis.repository.basic.AbstractSubjectRepository
updateSubjectMap
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HelloWorldSubjectRepository

public HelloWorldSubjectRepository(org.openpermis.cert.CertificateVerifier certificateVerifier,
                                   String... entries)
                            throws org.openpermis.repository.SubjectRepositoryException
Creates a subject repository from a list of classpath entries.

The public key of the subject in the SoA certificate is considered to be authentic. It is the callers duty to ensure that it really is authentic. Further, by specifiying the SoA certificate, its subject is trusted.

Parameters:
certificateVerifier - The certificate verifier used to verify the attribute certificates. Must not be null.
entries - the classpath entries pointing to certificates on the classpath (relative to the repository class) to be read and added.
Throws:
org.openpermis.repository.SubjectRepositoryException - if the repository can not be build up.
Since:
0.3.0
Method Detail

retrieveSubject

public org.openpermis.Subject retrieveSubject(URI identity)
                                       throws org.openpermis.repository.SubjectRepositoryException
Throws:
org.openpermis.repository.SubjectRepositoryException
Since:
0.3.0


PERMIS Role Based Access Control 0.3.0 (Build 14)
2009/05/08 09:07:14
Copyright (c) 2002-2007 Ergon Informatik AG