org.openpermis.examples.ldap
Class HelloLdap

java.lang.Object
  extended by org.openpermis.examples.ldap.HelloLdap

public final class HelloLdap
extends Object

A sample HelloWorld application that can be invoked from the command line.

For the sake of simplicity error handling is very simple

Since:
0.1.0

Constructor Summary
private HelloLdap()
          Objects of this class cannot be instantiated.
 
Method Summary
private static org.openpermis.PolicyDecisionPoint createPolicyDecisionPoint(org.openpermis.cert.verify.CertificateVerifier certificateVerifier)
          Creates a PolicyDecisionPoint from an attribute certificate located on the classpath.
static org.openpermis.examples.common.LetterboxService createService()
          Creates the LetterboxService.
private static org.openpermis.subject.SubjectFinder createSubjectFinder(org.openpermis.cert.verify.CertificateVerifier certificateVerifier)
          Creates a subject finder with the specified certificate verifier.
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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HelloLdap

private HelloLdap()
Objects of this class cannot be instantiated.

Since:
0.1.0
Method Detail

readSoaCertificate

private static final X509Certificate readSoaCertificate()
Reads the SoA certificate from a classpath URL.

Returns:
the SoA certificate requested.
Since:
0.3.0

createPolicyDecisionPoint

private static final org.openpermis.PolicyDecisionPoint createPolicyDecisionPoint(org.openpermis.cert.verify.CertificateVerifier certificateVerifier)
Creates a PolicyDecisionPoint from an attribute certificate located on the classpath.

Parameters:
certificateVerifier - the certificate verifier used to verify the attribute certificate containing the policy.
Returns:
the PolicyDecisionPoint requested or null if it could not be read.
Since:
0.3.0

createSubjectFinder

private static final org.openpermis.subject.SubjectFinder createSubjectFinder(org.openpermis.cert.verify.CertificateVerifier certificateVerifier)
Creates a subject finder with the specified certificate verifier.

Parameters:
certificateVerifier - the certificate verifier used to verify the attribute certificate of the subjects.
Returns:
the subject finder requested.
Since:
0.3.0

main

public 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.

Parameters:
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".
Since:
0.1.0

createService

public static org.openpermis.examples.common.LetterboxService createService()
Creates the LetterboxService.

Returns:
the HelloWorld service.
Since:
0.4.0


OpenPermis Role Based Access Control 0.9.0 (Build 16)
2009/08/13 07:18:22
Copyright (c) 2002-2007 Ergon Informatik AG