Class DefaultSingleSignOn
java.lang.Object
org.wildfly.security.http.util.sso.DefaultSingleSignOn
- All Implemented Interfaces:
AutoCloseable,ImmutableSingleSignOn,SingleSignOn
SingleSignOn implementation backed by a DefaultSingleSignOnEntry.- Author:
- Pedro Igor, Paul Ferraro
-
Constructor Summary
ConstructorsConstructorDescriptionDefaultSingleSignOn(String id, SingleSignOnEntry entry, Runnable mutator, Runnable remover) -
Method Summary
Modifier and TypeMethodDescriptionbooleanaddParticipant(String applicationId, String sessionId, URI participant) Adds a new participant to this single sign-on entry.voidclose()Closes any resources associated with this single sign-on entry.getId()Returns the unique identifier of this single sign-on entry.Returns the transient security identity associated with this single sign-on entry.Returns the authentication mechanism associated with this single sign-on entry.getName()Returns the name of the principal associated with this single sign-on entry.Returns the participants associated with this single sign-on entry.voidInvalidates this single sign-on entry.booleanReturnstrueif this single sign on is as a result of programmatic authentication.removeParticipant(String applicationId) Removes the participant for the specified application from this single sign-on entry.voidsetIdentity(SecurityIdentity identity) Associates a security identity with this single sign-on entry, only if no association exists.
-
Constructor Details
-
DefaultSingleSignOn
-
-
Method Details
-
getId
Description copied from interface:ImmutableSingleSignOnReturns the unique identifier of this single sign-on entry.- Specified by:
getIdin interfaceImmutableSingleSignOn- Returns:
- a unique identifier
-
getMechanism
Description copied from interface:ImmutableSingleSignOnReturns the authentication mechanism associated with this single sign-on entry.- Specified by:
getMechanismin interfaceImmutableSingleSignOn- Returns:
- an authentication mechanism name
-
isProgrammatic
public boolean isProgrammatic()Description copied from interface:ImmutableSingleSignOnReturnstrueif this single sign on is as a result of programmatic authentication.- Specified by:
isProgrammaticin interfaceImmutableSingleSignOn- Returns:
trueif this single sign on is as a result of programmatic authentication.
-
getName
Description copied from interface:ImmutableSingleSignOnReturns the name of the principal associated with this single sign-on entry.- Specified by:
getNamein interfaceImmutableSingleSignOn- Returns:
- a principal name
-
getIdentity
Description copied from interface:ImmutableSingleSignOnReturns the transient security identity associated with this single sign-on entry.- Specified by:
getIdentityin interfaceImmutableSingleSignOn- Returns:
- a security identity, or null if this entry was created by another node.
-
setIdentity
Description copied from interface:SingleSignOnAssociates a security identity with this single sign-on entry, only if no association exists.- Specified by:
setIdentityin interfaceSingleSignOn- Parameters:
identity- a security identity
-
addParticipant
Description copied from interface:SingleSignOnAdds a new participant to this single sign-on entry.- Specified by:
addParticipantin interfaceSingleSignOn- Parameters:
applicationId- the unique identifier of the application.sessionId- the unique identifier of the user session.participant- the authenticated request URI- Returns:
- true, if this participant was added, false if this application is already associated with this single sign-on entry.
-
removeParticipant
Description copied from interface:SingleSignOnRemoves the participant for the specified application from this single sign-on entry.- Specified by:
removeParticipantin interfaceSingleSignOn- Parameters:
applicationId- a unique application identifier- Returns:
- a tuple containing the unique session identifier and authenticated request URI, or null if the specified application was not associated with this single sign-on entry
-
getParticipants
Description copied from interface:ImmutableSingleSignOnReturns the participants associated with this single sign-on entry.- Specified by:
getParticipantsin interfaceImmutableSingleSignOn- Returns:
- an unmodifiable mapping of application identifier to a tuple of the session identifier and request URI
-
invalidate
public void invalidate()Description copied from interface:SingleSignOnInvalidates this single sign-on entry.- Specified by:
invalidatein interfaceSingleSignOn
-
close
public void close()Description copied from interface:SingleSignOnCloses any resources associated with this single sign-on entry.- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceSingleSignOn
-