com.sun.ebxml.registry.security.authentication
Class UserRegistrar

java.lang.Object
  |
  +--com.sun.ebxml.registry.security.authentication.UserRegistrar

public class UserRegistrar
extends java.lang.Object

Registers new users with the registry. Registration involves saving the public key certificate for the user in server KeyStore and storing their User object In registry.

Author:
Farrukh S. Najmi

Field Summary
static java.lang.String ASSOC_TYPE_HAS_CERTIFICATE
           
 
Constructor Summary
protected UserRegistrar()
           
 
Method Summary
static UserRegistrar getInstance()
           
static void main(java.lang.String[] args)
           
 org.oasis.ebxml.registry.bindings.rim.User registerUser(org.apache.xml.security.signature.XMLSignature headerSignature, org.oasis.ebxml.registry.bindings.rs.SubmitObjectsRequest req)
          It will try to register the user if the certificate in a signed SubmitObjectsRequest is not yet in the keystore.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ASSOC_TYPE_HAS_CERTIFICATE

public static final java.lang.String ASSOC_TYPE_HAS_CERTIFICATE
See Also:
Constant Field Values
Constructor Detail

UserRegistrar

protected UserRegistrar()
Method Detail

registerUser

public org.oasis.ebxml.registry.bindings.rim.User registerUser(org.apache.xml.security.signature.XMLSignature headerSignature,
                                                               org.oasis.ebxml.registry.bindings.rs.SubmitObjectsRequest req)
                                                        throws RegistryException
It will try to register the user if the certificate in a signed SubmitObjectsRequest is not yet in the keystore. The SubmitObjectsRequest must contain a single User object and its id must be a valid UUID and equal to the alias parameter, which should be extracted from the KeyInfo of XML signature element.

Returns:
the User object of the newly registered user
Throws:
UserRegistrationException - if SubmitObjectsRequest has more than one User object, or its alias is not equal to the id of the unique User object, or the id is not a valid UUID.
RegistryException

main

public static void main(java.lang.String[] args)
                 throws java.lang.Exception
java.lang.Exception

getInstance

public static UserRegistrar getInstance()


Copyright © 2001-2003 OASIS. All Rights Reserved.