13.07.2015 Views

IBM WebSphere V5.0 Security - CGISecurity

IBM WebSphere V5.0 Security - CGISecurity

IBM WebSphere V5.0 Security - CGISecurity

SHOW MORE
SHOW LESS
  • No tags were found...

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Table 8-2 <strong>WebSphere</strong>’s UserRegistry interfaceMethod signaturevoid initialize(java.util.Properties props)throws CustomRegistryException,RemoteExceptionString checkPassword(Stringuser<strong>Security</strong>Name, String password)throws PasswordCheckFailedException,CustomRegistryException,RemoteExceptionString mapCertificate(X509Certificate[]cert) throwsCertificateMapNotSupportedException,CertificateMapFailedException,CustomRegistryException,RemoteExceptionString getRealm() throwsCustomRegistryException,RemoteExceptionResult getUsers(String pattern, int limit)throws CustomRegistryException,RemoteExceptionString getUserDisplayName(Stringuser<strong>Security</strong>Name) throwsEntryNotFoundException,CustomRegistryException,RemoteExceptionString getUniqueUserId(Stringuser<strong>Security</strong>Name) throwsEntryNotFoundException,CustomRegistryException,RemoteExceptionUseInitializes the registry. This method iscalled when creating the registry.Checks the password of the user. Thismethod is called to authenticate a userwhen the user's name and password aregiven.Maps a Certificate (of X509 format) to avalid user in the Registry. This is used tomap the name in the certificate suppliedby a browser to a valid user<strong>Security</strong>Namein the registry.The realm is a registry-specific stringindicating the realm or domain for whichthis registry applies. For example, forOS400 or AIX this would be the host nameof the system whose user registry thisobject represents. If null is returned by thismethod realm defaults to the value of"customRealm".Gets a list of users that match a pattern inthe registy. The maximum number ofusers returned is defined by the limitargument.Returns the display name for the userspecified by user<strong>Security</strong>Name.Returns the UniqueId for auser<strong>Security</strong>Name. This method is calledwhen creating a credential for a user.Chapter 8. Programmatic security 187

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

Saved successfully!

Ooh no, something went wrong!