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:


Constructor Index

 o SimpleCertAuthenticator()

Method Index

 o authenticate(String, Certificate[], boolean)
Attempt to authenticate a remote user.

Constructors

 o SimpleCertAuthenticator
 public SimpleCertAuthenticator()

Methods

 o 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