Top Fields Constructors Methods
org.mortbay.jetty.security

public Class HashSSORealm

extends Object
implements SSORealm
Class Inheritance
All Implemented Interfaces
org.mortbay.jetty.security.SSORealm
Imports
java.security.Principal, .SecureRandom, java.util.HashMap, .Random, javax.servlet.http.Cookie, org.mortbay.jetty.Request, .Response, .UserRealm, org.mortbay.log.Log

Field Summary

Modifier and TypeField and Description
private transient Random
private HashMap<K, V>
private HashMap<K, V>
private HashMap<K, V>

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public void
clearSingleSignOn(String
The user to clear.
username
)

Implements org.mortbay.jetty.security.SSORealm.clearSingleSignOn.

Clear SSO for user.
public Credential
getSingleSignOn(Request
The request to SSO.
request
,
Response
The response to SSO.
response
)

Implements org.mortbay.jetty.security.SSORealm.getSingleSignOn.

Get SSO credentials.
public void
setSingleSignOn(Request
The authenticated request.
request
,
Response
The authenticated response/
response
,
Principal
The principal that has been authenticated.
principal
,
Credential
The credentials used to authenticate.
credential
)

Implements org.mortbay.jetty.security.SSORealm.setSingleSignOn.

Set SSO principal and credential.
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

_randomback to summary
private transient Random _random
_ssoId2Principalback to summary
private HashMap<K, V> _ssoId2Principal
_ssoPrincipal2Credentialback to summary
private HashMap<K, V> _ssoPrincipal2Credential
_ssoUsername2Idback to summary
private HashMap<K, V> _ssoUsername2Id

Constructor Detail

HashSSORealmback to summary
public HashSSORealm()

Method Detail

clearSingleSignOnback to summary
public void clearSingleSignOn(String username)

Implements org.mortbay.jetty.security.SSORealm.clearSingleSignOn.

Doc from org.mortbay.jetty.security.SSORealm.clearSingleSignOn.

Clear SSO for user.

Parameters
username:String

The user to clear.

getSingleSignOnback to summary
public Credential getSingleSignOn(Request request, Response response)

Implements org.mortbay.jetty.security.SSORealm.getSingleSignOn.

Doc from org.mortbay.jetty.security.SSORealm.getSingleSignOn.

Get SSO credentials. This call is used by an authenticator to check if a SSO exists for a request. If SSO authentiation is successful, the requests UserPrincipal and AuthUser fields are set. If available, the credential used to authenticate the user is returned. If recoverable credentials are not required then null may be return.

Parameters
request:Request

The request to SSO.

response:Response

The response to SSO.

Returns:Credential

A credential if available for SSO authenticated requests.

setSingleSignOnback to summary
public void setSingleSignOn(Request request, Response response, Principal principal, Credential credential)

Implements org.mortbay.jetty.security.SSORealm.setSingleSignOn.

Doc from org.mortbay.jetty.security.SSORealm.setSingleSignOn.

Set SSO principal and credential. This call is used by an authenticator to inform the SSO mechanism that a user has signed on. The SSO mechanism should record the principal and credential and update the response with any cookies etc. required.

Parameters
request:Request

The authenticated request.

response:Response

The authenticated response/

principal:Principal

The principal that has been authenticated.

credential:Credential

The credentials used to authenticate.