Class DefaultSingleSignOn

    • Method Detail

      • isProgrammatic

        public boolean isProgrammatic()
        Description copied from interface: ImmutableSingleSignOn
        Returns true if this single sign on is as a result of programmatic authentication.
        Specified by:
        isProgrammatic in interface ImmutableSingleSignOn
        Returns:
        true if this single sign on is as a result of programmatic authentication.
      • setIdentity

        public void setIdentity​(SecurityIdentity identity)
        Description copied from interface: SingleSignOn
        Associates a security identity with this single sign-on entry, only if no association exists.
        Specified by:
        setIdentity in interface SingleSignOn
        Parameters:
        identity - a security identity
      • addParticipant

        public boolean addParticipant​(String applicationId,
                                      String sessionId,
                                      URI participant)
        Description copied from interface: SingleSignOn
        Adds a new participant to this single sign-on entry.
        Specified by:
        addParticipant in interface SingleSignOn
        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

        public Map.Entry<String,​URI> removeParticipant​(String applicationId)
        Description copied from interface: SingleSignOn
        Removes the participant for the specified application from this single sign-on entry.
        Specified by:
        removeParticipant in interface SingleSignOn
        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
      • invalidate

        public void invalidate()
        Description copied from interface: SingleSignOn
        Invalidates this single sign-on entry.
        Specified by:
        invalidate in interface SingleSignOn
      • close

        public void close()
        Description copied from interface: SingleSignOn
        Closes any resources associated with this single sign-on entry.
        Specified by:
        close in interface AutoCloseable
        Specified by:
        close in interface SingleSignOn