|
![]() |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.openpermis.repository.basic.AbstractSubjectRepository
org.openpermis.repository.basic.StreamSubjectRepository
org.openpermis.repository.basic.FileSubjectRepository
public class FileSubjectRepository
A subject repository containing certificates from a local directory.
Reads all .ace files in the directory and its sub directories specified at construction time.
Field Summary | |
---|---|
private static FileFilter |
ACE_FILE_FILTER
Filter for .ace files and sub directories. |
private static org.slf4j.Logger |
LOGGER
The logger object of this class. |
Constructor Summary | |
---|---|
FileSubjectRepository(CertificateVerifier certificateVerifier,
File... directories)
Creates a file directory subject repository from directory and the specified certificate verifier. |
Method Summary | |
---|---|
private void |
addAttributeCertificate(File file)
Adds an attribute certificate for the specified file. |
private void |
process(File directory)
Loads all attribute certificates stored in the specified directory. |
Methods inherited from class org.openpermis.repository.basic.StreamSubjectRepository |
---|
addAttributeCertificate, addAttributeCertificate, retrieveSubject |
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 |
Field Detail |
---|
private static final org.slf4j.Logger LOGGER
private static final FileFilter ACE_FILE_FILTER
Constructor Detail |
---|
public FileSubjectRepository(CertificateVerifier certificateVerifier, File... directories) throws SubjectRepositoryException
certificateVerifier
- the certificate verifier user to verify the the attribute
certificates, must not be null
.directories
- a list of directories to be searched for .ace files,
must not be null
.
SubjectRepositoryException
- if the repository can not be build up.Method Detail |
---|
private void addAttributeCertificate(File file) throws NoSuchAlgorithmException, NoSuchProviderException, IOException
file
- the file containing the DER encoded attribute certificate,
must not be null
.StreamSubjectRepository.addAttributeCertificate(InputStream)
NoSuchAlgorithmException
- passed on.
NoSuchProviderException
- passed on.
IOException
- if the file cannot be opened or
StreamSubjectRepository.addAttributeCertificate(InputStream)
reports an error.private void process(File directory) throws NoSuchAlgorithmException, NoSuchProviderException, IOException
directory
- the directory to load the certificates from.addAttributeCertificate(File)
IOException
- passed on.
NoSuchProviderException
- passed on.
NoSuchAlgorithmException
- passed on.
|
![]() |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
PERMIS Role Based Access Control 0.3.0 (Build 14)
2009/05/08 09:06:22
Copyright (c) 2002-2007 Ergon Informatik AG