|
| WebLogic Server 6.0 Code Examples, BEA Systems, Inc. |
SUMMARY: INNER | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD |
examples.security.cert
Class SimpleCertAuthenticator
java.lang.Object
|
+--examples.security.cert.SimpleCertAuthenticator
- All Implemented Interfaces:
- weblogic.security.acl.CertAuthenticator
- public class SimpleCertAuthenticator
- extends java.lang.Object
- implements weblogic.security.acl.CertAuthenticator
A very simple certificate authentication example. This
example maps the name in the e-mail address of a
certificate's holder directly to a WebLogic user.
Other, more realistic, approaches to authentication
include the following:
- Search an LDAP directory for a user with a matching
certificate, and return that user, if any.
- Maintain an RDBMS table that maps certificate public keys to
WebLogic usernames, and perform an RDBMS lookup to obtain a username.
- Author:
- Copyright (c) 1999-2000 by BEA Systems, Inc. All Rights Reserved.
Method Summary |
weblogic.security.acl.User |
authenticate(java.lang.String userName,
weblogic.security.Certificate[] certs,
boolean ssl)
Attempts to authenticate a remote user. |
Methods inherited from class java.lang.Object |
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SimpleCertAuthenticator
public SimpleCertAuthenticator()
authenticate
public weblogic.security.acl.User authenticate(java.lang.String userName,
weblogic.security.Certificate[] certs,
boolean ssl)
- Attempts to authenticate a remote user.
- Specified by:
authenticate
in interface weblogic.security.acl.CertAuthenticator
- Parameters:
userName
- ignored by this examplecerts
- used to attempt to map from e-mail address to WebLogic
userssl
- if true, this example always returns null- Returns:
- Authenticated user, or null if authentication failed
Copyright © 2000 BEA Systems, Inc. All Rights Reserved.