org.jboss.security.saml
Class AuthResponse

java.lang.Object
  extended by org.jboss.security.saml.AuthResponse
All Implemented Interfaces:
java.io.Serializable

public class AuthResponse
extends java.lang.Object
implements java.io.Serializable

AuthResponse represents data related to an authentication assertion performed by one of the members of the Single Sign On Federation.

Author:
Sohil Shah - sohil.shah@jboss.com
See Also:
Serialized Form

Constructor Summary
AuthResponse(java.lang.String assertingParty, java.lang.String assertToken, SSOUser user, boolean success)
          Initializes a response
 
Method Summary
 java.lang.String getAssertingParty()
          Returns the asserting party which is a member/partner web application in the Single Sign On Federation
 java.lang.String getAssertToken()
          Returns the assertion token
 SSOUser getUser()
          Return the user being considered for authentication
 boolean isAuthenticated()
          Returns the status of whether the asserting party successfully authenticated this user or not
 void setAssertingParty(java.lang.String assertingParty)
          Sets the asserting party which is a member/partner web application in the Single Sign On Federation
 void setUser(SSOUser user)
          Sets the user being considered for authentication
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AuthResponse

public AuthResponse(java.lang.String assertingParty,
                    java.lang.String assertToken,
                    SSOUser user,
                    boolean success)
Initializes a response

Parameters:
assertingParty - a member/partner web application of the Single Sign On Federation
assertToken - raw String representation of the token that was issued by the assertingParty
user - the user being considered for authentication
success - status of the assertion
Method Detail

getAssertingParty

public java.lang.String getAssertingParty()
Returns the asserting party which is a member/partner web application in the Single Sign On Federation

Returns:

setAssertingParty

public void setAssertingParty(java.lang.String assertingParty)
Sets the asserting party which is a member/partner web application in the Single Sign On Federation

Parameters:
assertingParty -

getAssertToken

public java.lang.String getAssertToken()
Returns the assertion token

Returns:

getUser

public SSOUser getUser()
Return the user being considered for authentication

Returns:

setUser

public void setUser(SSOUser user)
Sets the user being considered for authentication

Parameters:
user -

isAuthenticated

public boolean isAuthenticated()
Returns the status of whether the asserting party successfully authenticated this user or not

Returns: