|
![]() |
||||||||
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.UrlSubjectRepository
public class UrlSubjectRepository
A subject repository containing certificates from a list of URL
s.
Field Summary | |
---|---|
private static org.slf4j.Logger |
LOGGER
The logger object of this class. |
Constructor Summary | |
---|---|
UrlSubjectRepository(CertificateVerifier certificateVerifier,
URL... urls)
Creates a file directory subject repository from directory and the specified certificate verifier. |
Method Summary | |
---|---|
private void |
addAttributeCertificate(URL url)
Adds an attribute certificate for the specified file. |
static UrlSubjectRepository |
createClasspathSubjectRepository(CertificateVerifier certificateVerifier,
Class<?> clazz,
String... resources)
Creates a subject repository for a list of attribute certificates loaded as resources from a class loader. |
static UrlSubjectRepository |
createClasspathSubjectRepository(CertificateVerifier certificateVerifier,
ClassLoader classLoader,
String... resources)
Creates a subject repository for a list of attribute certificates loaded as resources from a class loader. |
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
Constructor Detail |
---|
public UrlSubjectRepository(CertificateVerifier certificateVerifier, URL... urls) throws SubjectRepositoryException
certificateVerifier
- the certificate verifier user to verify the the attribute
certificates, must not be null
.urls
- a list of URLs pointing to attribute certificates to be added,
must not be null
.
SubjectRepositoryException
- if the repository cannot be built.Method Detail |
---|
public static UrlSubjectRepository createClasspathSubjectRepository(CertificateVerifier certificateVerifier, ClassLoader classLoader, String... resources) throws SubjectRepositoryException
Uses the Thread.getContextClassLoader()
as a fallback if a resource cannot
be retrieved using the specified class loader.
certificateVerifier
- the certificate verifier user to verify the the attribute
certificates, must not be null
.classLoader
- the class loader to use for retrieving the resource URLs.resources
- list of resource locations to process, must not be null
or empty.
SubjectRepositoryException
- if the repository cannot be built or if there
is a problem retrieving a resource.ClassLoader.getResource(String)
public static UrlSubjectRepository createClasspathSubjectRepository(CertificateVerifier certificateVerifier, Class<?> clazz, String... resources) throws SubjectRepositoryException
certificateVerifier
- the certificate verifier user to verify the the attribute
certificates, must not be null
.clazz
- the class to use for retrieving the resource URLs.resources
- list of resource locations to process, must not be null
or empty.
SubjectRepositoryException
- if the repository cannot be built or if there
is a problem retrieving a resource.Class.getResource(String)
private void addAttributeCertificate(URL url) throws NoSuchAlgorithmException, NoSuchProviderException, IOException
url
- the URL that points to a resource that contains the DER encoded attribute
certificate, must not be null
.
NoSuchAlgorithmException
- passed on.
NoSuchProviderException
- passed on.
IOException
- if the URL stream cannot be opened or
StreamSubjectRepository.addAttributeCertificate(InputStream)
reports an error.StreamSubjectRepository.addAttributeCertificate(InputStream)
|
![]() |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
PERMIS Role Based Access Control 0.4.0 (Build 15)
2009/05/20 08:14:59
Copyright (c) 2002-2007 Ergon Informatik AG