com.sun.xml.registry.client.browser.registration
Class UserManager

java.lang.Object
  extended bycom.sun.xml.registry.client.browser.registration.UserManager

public class UserManager
extends java.lang.Object

User registration tool.


Method Summary
static void authenticateAndSaveUser(UserModel userModel)
          First check if certificate already exists in client keystore.
static boolean certificateExists(java.lang.String alias, char[] storePass)
           
static void generateSelfSignedCertificate(javax.xml.registry.infomodel.User user, java.lang.String alias, char[] keyPass, char[] storePass)
           
static UserManager getInstance()
          DOCUMENT ME!
 void registerNewUser()
           
static void removeCertificate(java.lang.String alias, char[] storePass)
          Remove an alias from the keystore.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getInstance

public static UserManager getInstance()
DOCUMENT ME!

Returns:
DOCUMENT ME!

registerNewUser

public void registerNewUser()
                     throws java.lang.Exception
Throws:
java.lang.Exception

authenticateAndSaveUser

public static void authenticateAndSaveUser(UserModel userModel)
                                    throws java.lang.Exception
First check if certificate already exists in client keystore. If it does use it. If not then create a self signed certificate for the user and use it to authenticate with the ebxmlrr server. If the authentication is sucessful, save the user model to the server.

Throws:
java.lang.Exception

certificateExists

public static boolean certificateExists(java.lang.String alias,
                                        char[] storePass)
                                 throws java.lang.Exception
Throws:
java.lang.Exception

generateSelfSignedCertificate

public static void generateSelfSignedCertificate(javax.xml.registry.infomodel.User user,
                                                 java.lang.String alias,
                                                 char[] keyPass,
                                                 char[] storePass)
                                          throws java.lang.Exception
Throws:
java.lang.Exception

removeCertificate

public static void removeCertificate(java.lang.String alias,
                                     char[] storePass)
                              throws java.lang.Exception
Remove an alias from the keystore.

Currently, this is only used to "backout" a generated key when self registration fails.

Throws:
java.lang.Exception


Copyright © 2001-2004 OASIS. All Rights Reserved.