|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface MembershipDomain
Defines a Membership Domain for the Membership Service.
Method Summary | |
---|---|
SuccessfulAuthenticationToken |
authenticateUser(java.lang.String username,
Credentials credential,
java.io.Serializable trustedPayload,
java.lang.String applicationName)
Authenticate a user with the specified username and credential for use with the specified application. |
java.util.Set |
getGroupNames()
Returns a String set all group names known to this domain. |
java.util.Set |
getGroupNamesForUser(java.lang.String username)
Returns a String set of all group names the given user is a member of. |
void |
initialize(java.util.Properties env)
Initialize this domain with the given properties. |
void |
shutdown()
Shut down this domain to further work. |
Method Detail |
---|
void initialize(java.util.Properties env) throws MembershipSourceException
env
- contains the properties for this domain as set by the console
ServiceStateException
MembershipSourceException
void shutdown() throws MembershipSourceException
ServiceStateException
MembershipSourceException
SuccessfulAuthenticationToken authenticateUser(java.lang.String username, Credentials credential, java.io.Serializable trustedPayload, java.lang.String applicationName) throws UnsupportedCredentialException, InvalidUserException, LogonException, MembershipSourceException
username
- The base username (without the domain suffix) of the individual attempting authentication. May be null
if the
membership domain implementation uses a mechanism other than username/credential authentication.credential
- The credentials belonging to the individual seeking authentication. May be null
for anonymous authentications.trustedPayload
- The trusted payload set by the client. May be null
if not set by the client.applicationName
- The name of the application to which the individual is attempting to authenticate. It's provided as a connection
property when the individual connects (via URL or connection properties). This applicationName
may be used by the authenticating membership domain as a basis for authentication and authorization.
InvalidUserException
- if the user does not exist in this domain
UnsupportedCredentialException
- if the credential or trustedPayload cannot be used to authenticate the user
LogonException
- if the user was unsuccessfully authenticated
MembershipSourceException
- if there was an internal errorjava.util.Set getGroupNames() throws MembershipSourceException
MembershipSourceException
- if there was an internal errorjava.util.Set getGroupNamesForUser(java.lang.String username) throws InvalidUserException, MembershipSourceException
username
-
InvalidUserException
- if the user does not exist in this domain
MembershipSourceException
- if there was an internal error
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |