public class FSSession extends Object
Constructor and Description |
---|
FSSession(String sessionID)
Constructs a new
FSSession object. |
FSSession(String sessionID,
List sessionPartners)
Constructs a new
FSSession . |
Modifier and Type | Method and Description |
---|---|
void |
addAttribute(String key,
String value)
Adds attribute to the session.
|
void |
addSessionPartner(FSSessionPartner sessionPartner)
Adds a session partner.
|
FSAccountFedInfo |
getAccountFedInfo()
Returns account federation info.
|
String |
getAttribute(String key)
Returns value of an attribute from the session.
|
List |
getAttributeStatements()
Gets Attribute Statements.
|
String |
getAuthnContext()
Returns authentication context.
|
AttributeStatement |
getAutoFedStatement()
Gets Auto Federate Statement.
|
AttributeStatement |
getBootStrapAttributeStatement()
Gets the boot strap attribute statement.
|
List |
getBootStrapCredential()
Gets the boot strap security credential assertion.
|
NodeList |
getBootStrapResourceOfferings()
Gets Discovery Service Boot strap resource offerings.
|
FSSessionPartner |
getCurrentSessionPartner()
Returns the first session partner of the list of session partners.
|
boolean |
getOneTime()
Returns the flag for one time federation.
|
String |
getSessionID()
Returns session ID.
|
String |
getSessionIndex()
Returns session index.
|
List |
getSessionPartners()
Returns list of session partners.
|
String |
getUserID()
Returns user ID.
|
int |
hashCode()
Returns a hash code for this session.
|
void |
removeSessionPartner(String sessionPartner)
Removes a session partner.
|
void |
setAccountFedInfo(FSAccountFedInfo fedInfo)
Sets account federation info.
|
void |
setAttributeStatements(List attrStatements)
Sets Attribute Statements.
|
void |
setAuthnContext(String authnContext)
Sets authentication context.
|
void |
setAutoFedStatement(AttributeStatement autoFedStmt)
Sets AutoFederate Statement.
|
void |
setBootStrapAttributeStatement(AttributeStatement statement)
Sets the boot strap attribute statement.
|
void |
setBootStrapCredential(List assertions)
Sets the bootstrap security credential assertion.
|
void |
setOneTime(boolean oneTimeFlag)
Sets the flag for one time federation.
|
void |
setSessionIndex(String sessionIndex)
Sets session index.
|
void |
setUserID(String userID)
Sets user ID.
|
public FSSession(String sessionID, List sessionPartners)
FSSession
.sessionID
- authentication session IDsessionPartners
- list of session partnerspublic FSSession(String sessionID)
FSSession
object.sessionID
- authentication session IDpublic String getAuthnContext()
setAuthnContext(String)
public void setAuthnContext(String authnContext)
authnContext
- authentication context to be setgetAuthnContext()
public String getSessionIndex()
setSessionIndex(String)
public void setSessionIndex(String sessionIndex)
sessionIndex
- session index to be setgetSessionIndex()
public List getSessionPartners()
public void addSessionPartner(FSSessionPartner sessionPartner)
sessionPartner
- session partner to be addedpublic FSSessionPartner getCurrentSessionPartner()
public void removeSessionPartner(String sessionPartner)
sessionPartner
- session partner to be removedpublic String getSessionID()
public void addAttribute(String key, String value)
key
- name of the attributevalue
- value of the attributepublic String getAttribute(String key)
key
- name of the attributepublic int hashCode()
public void setBootStrapAttributeStatement(AttributeStatement statement)
statement
- Boot strap attribute statementgetBootStrapAttributeStatement()
public AttributeStatement getBootStrapAttributeStatement()
setBootStrapAttributeStatement(AttributeStatement)
public NodeList getBootStrapResourceOfferings()
public void setBootStrapCredential(List assertions)
assertions
- List of bootstrap security assertions.getBootStrapCredential()
public List getBootStrapCredential()
setBootStrapCredential(List)
public void setAutoFedStatement(AttributeStatement autoFedStmt)
autoFedStmt
- Auto Federate Statement.getAutoFedStatement()
public AttributeStatement getAutoFedStatement()
setAutoFedStatement(AttributeStatement)
public void setAttributeStatements(List attrStatements)
attrStatements
- List of Attribute Statements.getAttributeStatements()
public List getAttributeStatements()
setAttributeStatements(List)
public void setOneTime(boolean oneTimeFlag)
oneTimeFlag
- flag for one time federationgetOneTime()
public boolean getOneTime()
true
if the session is for one time federation;
false
otherwise.public void setAccountFedInfo(FSAccountFedInfo fedInfo)
fedInfo
- account federation info to be setgetAccountFedInfo()
public FSAccountFedInfo getAccountFedInfo()
FSAccountFedInfo
objectsetAccountFedInfo(FSAccountFedInfo)
public void setUserID(String userID)
userID
- user ID to be setgetUserID()
public String getUserID()
setUserID(String)
Copyright © 2010–2025 Open Identity Platform Community. All rights reserved.