no.feide.moria.store
Class MoriaAuthnAttempt

java.lang.Object
  extended by no.feide.moria.store.MoriaAuthnAttempt
All Implemented Interfaces:
java.io.Serializable, MoriaStoreData

public final class MoriaAuthnAttempt
extends java.lang.Object
implements MoriaStoreData

This class is used for holding state through an authentication. From initialization by the service through to final retrieval of user data.

Version:
$Revision: 1.10 $
Author:
Bjørn Ola Smievoll <b.o@smievoll.no>
See Also:
Serialized Form

Field Summary
private  boolean forceInterativeAuthentication
          Whether or not single sign-on (SSO) is to be used when user arrives at login servlet.
private  java.lang.String[] requestedAttributes
          The inital attributes requested by the initiating service.
private  java.lang.String returnURLPostfix
          The final part of the url the user is to be redirected to.
private  java.lang.String returnURLPrefix
          The initial part of the url the user is to be redirected to.
private  java.lang.String servicePrincipal
          Principal for the client that requests the authentication attempt.
private  java.util.HashMap transientAttributes
          Transient attributes returned from a directory that are not to be cached.
 
Constructor Summary
MoriaAuthnAttempt(java.lang.String[] requestedAttributes, java.lang.String returnURLPrefix, java.lang.String returnURLPostfix, boolean forceInteractiveAuthentication, java.lang.String servicePrincipal)
          Constructs an instance.
 
Method Summary
 java.lang.String[] getRequestedAttributes()
          Gets the string array containing the requested attributes.
 java.lang.String getReturnURLPostfix()
          Gets the end part of the return url.
 java.lang.String getReturnURLPrefix()
          Gets the initial part of the return url.
 java.lang.String getServicePrincipal()
          Gets the servicePrincipal.
 java.util.HashMap getTransientAttributes()
          Gets the transient attributes.
 boolean isForceInterativeAuthentication()
          Checks whether or not single sign-on (SSO) should be refused even if possible.
(package private)  void setTransientAttributes(java.util.HashMap transientAttributes)
          Sets the user data that have been retrieved from a directory for this authentication attempt.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

requestedAttributes

private final java.lang.String[] requestedAttributes
The inital attributes requested by the initiating service.


returnURLPrefix

private final java.lang.String returnURLPrefix
The initial part of the url the user is to be redirected to.


returnURLPostfix

private final java.lang.String returnURLPostfix
The final part of the url the user is to be redirected to.


forceInterativeAuthentication

private final boolean forceInterativeAuthentication
Whether or not single sign-on (SSO) is to be used when user arrives at login servlet.


transientAttributes

private java.util.HashMap transientAttributes
Transient attributes returned from a directory that are not to be cached.


servicePrincipal

private final java.lang.String servicePrincipal
Principal for the client that requests the authentication attempt.

Constructor Detail

MoriaAuthnAttempt

public MoriaAuthnAttempt(java.lang.String[] requestedAttributes,
                         java.lang.String returnURLPrefix,
                         java.lang.String returnURLPostfix,
                         boolean forceInteractiveAuthentication,
                         java.lang.String servicePrincipal)
Constructs an instance. Usually based on data given in an initial request by a remote service.

Parameters:
requestedAttributes - the attributes the remote service requires
returnURLPrefix - the initial part of the url the user is to be redirected to
returnURLPostfix - the final part of the url the user is to be redirected to. May be null
forceInteractiveAuthentication - whether or not SSO is to be used
servicePrincipal - the name of the service initiating this authentication attempt.
Method Detail

getRequestedAttributes

public java.lang.String[] getRequestedAttributes()
Gets the string array containing the requested attributes.

Returns:
The attributes requested by the invoking service.

getTransientAttributes

public java.util.HashMap getTransientAttributes()
Gets the transient attributes.

Returns:
The short-lived user attributes.

setTransientAttributes

void setTransientAttributes(java.util.HashMap transientAttributes)
Sets the user data that have been retrieved from a directory for this authentication attempt.

Parameters:
transientAttributes - The short-lived user attributes.

getReturnURLPrefix

public java.lang.String getReturnURLPrefix()
Gets the initial part of the return url.

Returns:
The return url prefix.

getReturnURLPostfix

public java.lang.String getReturnURLPostfix()
Gets the end part of the return url.

Returns:
The return url postfix.

getServicePrincipal

public java.lang.String getServicePrincipal()
Gets the servicePrincipal.

Returns:
The service principal name.

isForceInterativeAuthentication

public boolean isForceInterativeAuthentication()
Checks whether or not single sign-on (SSO) should be refused even if possible.

Returns:
True for forced authentication.


Copyright © 2001-2006 UNINETT FAS. All Rights Reserved.