WebLogic Server 6.0 Code Examples, BEA Systems, Inc.

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:

Author:
Copyright (c) 1999-2000 by BEA Systems, Inc. All Rights Reserved.

Constructor Summary
SimpleCertAuthenticator()
           
 
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
 

Constructor Detail

SimpleCertAuthenticator

public SimpleCertAuthenticator()
Method Detail

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 example
certs - used to attempt to map from e-mail address to WebLogic user
ssl - if true, this example always returns null
Returns:
Authenticated user, or null if authentication failed

Documentation is available at
http://e-docs.bea.com/wls/docs60

Copyright © 2000 BEA Systems, Inc. All Rights Reserved.