03.05.2015 Views

IBM WebSphere V5.0 Security - CGISecurity

IBM WebSphere V5.0 Security - CGISecurity

IBM WebSphere V5.0 Security - CGISecurity

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Table 8-2 <strong>WebSphere</strong>’s UserRegistry interface<br />

Method signature<br />

void initialize(java.util.Properties props)<br />

throws CustomRegistryException,<br />

RemoteException<br />

String checkPassword(String<br />

user<strong>Security</strong>Name, String password)<br />

throws PasswordCheckFailedException,<br />

CustomRegistryException,<br />

RemoteException<br />

String mapCertificate(X509Certificate[]<br />

cert) throws<br />

CertificateMapNotSupportedException,<br />

CertificateMapFailedException,<br />

CustomRegistryException,<br />

RemoteException<br />

String getRealm() throws<br />

CustomRegistryException,<br />

RemoteException<br />

Result getUsers(String pattern, int limit)<br />

throws CustomRegistryException,<br />

RemoteException<br />

String getUserDisplayName(String<br />

user<strong>Security</strong>Name) throws<br />

EntryNotFoundException,<br />

CustomRegistryException,<br />

RemoteException<br />

String getUniqueUserId(String<br />

user<strong>Security</strong>Name) throws<br />

EntryNotFoundException,<br />

CustomRegistryException,<br />

RemoteException<br />

Use<br />

Initializes the registry. This method is<br />

called when creating the registry.<br />

Checks the password of the user. This<br />

method is called to authenticate a user<br />

when the user's name and password are<br />

given.<br />

Maps a Certificate (of X509 format) to a<br />

valid user in the Registry. This is used to<br />

map the name in the certificate supplied<br />

by a browser to a valid user<strong>Security</strong>Name<br />

in the registry.<br />

The realm is a registry-specific string<br />

indicating the realm or domain for which<br />

this registry applies. For example, for<br />

OS400 or AIX this would be the host name<br />

of the system whose user registry this<br />

object represents. If null is returned by this<br />

method realm defaults to the value of<br />

"customRealm".<br />

Gets a list of users that match a pattern in<br />

the registy. The maximum number of<br />

users returned is defined by the limit<br />

argument.<br />

Returns the display name for the user<br />

specified by user<strong>Security</strong>Name.<br />

Returns the UniqueId for a<br />

user<strong>Security</strong>Name. This method is called<br />

when creating a credential for a user.<br />

Chapter 8. Programmatic security 187

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!