com.beasys.commerce.axiom.contact.security
Class JaasHelper
java.lang.Object
|
+--com.beasys.commerce.axiom.contact.security.JaasHelper
- public class JaasHelper
- extends java.lang.Object
Helper class to make JAAS authentication easier.
Method Summary |
static javax.security.auth.Subject |
login(java.lang.String username,
java.lang.String password)
Return a JAAS Subject as a result of authenticating a user. |
static javax.security.auth.Subject |
login(java.lang.String username,
java.lang.String password,
java.lang.String connectString)
Return a JAAS Subject as a result of authenticating a user. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
JaasHelper
public JaasHelper()
login
public static javax.security.auth.Subject login(java.lang.String username,
java.lang.String password)
- Return a JAAS Subject as a result of authenticating a user. This will
first use the URL specified by the property "jaas.connectString" in
the server properties file, and if this is not given, it will
use the local server as a JAAS Server, i.e.,
t3://localhost: to authenticate.
- Parameters:
username
- the user to authenticatepassword
- the password to authenticate with
login
public static javax.security.auth.Subject login(java.lang.String username,
java.lang.String password,
java.lang.String connectString)
- Return a JAAS Subject as a result of authenticating a user. This will
connect to the provided URL to perform the authentication.
- Parameters:
username
- the user to authenticatepassword
- the password to authenticate withconnectString
- a t3 URL to connect to
Copyright © 2001 BEA Systems, Inc. All Rights Reserved