|
![]() |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.openpermis.examples.ldap.HelloWorld
public final class HelloWorld
A sample HelloWorld application that can be invoked from the command line.
For the sake of simplicity error handling is very simple
Constructor Summary | |
---|---|
private |
HelloWorld()
Objects of this class cannot be instantiated. |
Method Summary | |
---|---|
private static org.openpermis.PolicyDecisionPoint |
createPolicyDecisionPoint(org.openpermis.cert.CertificateVerifier certificateVerifier)
Creates a PolicyDecisionPoint from an attribute certificate located on the classpath. |
static void |
main(String[] args)
This main method creates an authorized HelloWorld service and tries to get greeting messages for all user names that it finds in its argument list. |
private static X509Certificate |
readSoaCertificate()
Reads the SoA certificate from a classpath URL. |
private static org.openpermis.repository.SubjectRepository |
readSubjectRepository(org.openpermis.cert.CertificateVerifier certificateVerifier)
Creates a subject repository with the specified certificate verifier. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
private HelloWorld()
Method Detail |
---|
private static final X509Certificate readSoaCertificate()
private static final org.openpermis.PolicyDecisionPoint createPolicyDecisionPoint(org.openpermis.cert.CertificateVerifier certificateVerifier)
PolicyDecisionPoint
from an attribute certificate located on the classpath.
certificateVerifier
- the certificate verifier used to verify the attribute
certificate containing the policy.
PolicyDecisionPoint
requested or null
if it could not be read.private static final org.openpermis.repository.SubjectRepository readSubjectRepository(org.openpermis.cert.CertificateVerifier certificateVerifier)
certificateVerifier
- the certificate verifier used to verify the attribute
certificate of the subjects.
null
in case of a failure.public static void main(String[] args)
args
- a set of user names for whom the service will be invoked.
E.g. "cn=john,o=post,c=ch"
or
"cn=sara,o=post,c=ch"
.
|
![]() |
||||||||
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:07:19
Copyright (c) 2002-2007 Ergon Informatik AG