Class CASSPSession

    • Field Detail

      • ticket

        @Nonnull
        @NotEmpty
        private final String ticket
        Validated ticket that started the SP session.
    • Constructor Detail

      • CASSPSession

        public CASSPSession​(@Nonnull @NotEmpty
                            String id,
                            @Nonnull
                            Instant creation,
                            @Nonnull
                            Instant expiration,
                            @Nonnull @NotEmpty
                            String ticketId)
        Creates a new CAS SP session.
        Parameters:
        id - the identifier of the service associated with this session
        creation - creation time of session
        expiration - expiration time of session
        ticketId - ticket ID used to gain access to the service
    • Method Detail

      • getTicketId

        @Nonnull
        @NotEmpty
        public String getTicketId()
        Get the ticket ID.
        Returns:
        ticket ID
      • getSPSessionKey

        public String getSPSessionKey()
        Get a unique key identifying this subject's session with the service.

        This will vary based on the type of session, typically based on the protocol used, but it provides a secondary lookup key that may be required in support of other use cases involving that protocol. Not all protocols may require such a key, so null may be returned.

        Specified by:
        getSPSessionKey in interface SPSession
        Overrides:
        getSPSessionKey in class BasicSPSession
        Returns:
        a unique key identifying this subject's session with the service, or null
      • getProtocol

        @Nullable
        @NotEmpty
        public String getProtocol()
        Get a prototocol constant for the session suitable for metadata lookup.
        Specified by:
        getProtocol in interface SPSessionEx
        Returns:
        a protocol constant
      • supportsLogoutPropagation

        public boolean supportsLogoutPropagation()
        Gets whether the session allows for logout propagation.
        Specified by:
        supportsLogoutPropagation in interface SPSessionEx
        Returns:
        whether the session allows for logout propagation