All Examples All Security Examples
Class examples.security.cert.SimpleCertAuthenticator
examples.security.cert.SimpleCertAuthenticator
- public class SimpleCertAuthenticator
- implements CertAuthenticator
A very simple certificate authentication example. This
example maps the name in the email 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 user names, and perform an RDBMS lookup to obtain a user
name.
-
SimpleCertAuthenticator()
-
-
authenticate(String, Certificate[], boolean)
- Attempt to authenticate a remote user.
SimpleCertAuthenticator
public SimpleCertAuthenticator()
authenticate
public User authenticate(String userName,
Certificate certs[],
boolean ssl)
- Attempt to authenticate a remote user.
- Parameters:
- userName - ignored by this example
- certs - used to attempt to map from email addrss to WebLogic
user
- ssl - if true, this example always returns null
- Returns:
- authenticated user, or null if authentication failed
All Examples All Security Examples