Class OIDCRPSession.Builder

java.lang.Object
net.shibboleth.idp.plugin.oidc.op.session.OIDCRPSession.Builder
Enclosing class:
OIDCRPSession

public static class OIDCRPSession.Builder extends Object
Builder class for building OIDCRPSession.
  • Field Details

    • serviceId

      @Nullable private String serviceId
      The unique identifier of the service.
    • creationInstant

      @Nullable private Instant creationInstant
      The time when this session was created.
    • expirationInstant

      @Nullable private Instant expirationInstant
      The time when this session expires.
    • issuer

      @Nullable private String issuer
      The issuer value to interact with the service.
    • rootTokenIdentifier

      @Nullable private String rootTokenIdentifier
      The root token identifier.
    • sessionIdentifier

      @Nullable private String sessionIdentifier
      The session identifier.
    • subject

      @Nullable private String subject
      The subject value.
    • supportsLogoutPropagation

      private boolean supportsLogoutPropagation
      The flag whether the session allows for logout propagation.
  • Constructor Details

    • Builder

      public Builder()
      Constructor.
  • Method Details

    • serviceId

      public OIDCRPSession.Builder serviceId(@Nonnull String id)
      Set the unique identifier of the service.
      Parameters:
      id - unique identifier of the service
      Returns:
      this builder
    • creationInstant

      public OIDCRPSession.Builder creationInstant(@Nonnull Instant creation)
      Set the time when this session was created.
      Parameters:
      creation - time when this session was created
      Returns:
      this builder
    • expirationInstant

      public OIDCRPSession.Builder expirationInstant(@Nonnull Instant expiration)
      Set the time when this session expires.
      Parameters:
      expiration - time when this session expires
      Returns:
      this builder
    • issuer

      public OIDCRPSession.Builder issuer(@Nonnull String iss)
      Set the issuer value to interact with the service.
      Parameters:
      iss - issuer value to interact with the service
      Returns:
      this builder
    • rootTokenIdentifier

      public OIDCRPSession.Builder rootTokenIdentifier(@Nullable String rootJti)
      Set the root token identifier.
      Parameters:
      rootJti - root token identifier
      Returns:
      this builder
    • sessionIdentifier

      public OIDCRPSession.Builder sessionIdentifier(@Nonnull String sid)
      Set the session identifier.
      Parameters:
      sid - session identifier
      Returns:
      this builder
    • subject

      public OIDCRPSession.Builder subject(@Nonnull String sub)
      Set the subject value.
      Parameters:
      sub - subject value
      Returns:
      this builder
    • supportLogoutPropagation

      public OIDCRPSession.Builder supportLogoutPropagation(boolean supportsPropagation)
      Set the flag whether the session allows for logout propagation.
      Parameters:
      supportsPropagation - flag whether the session allows for logout propagation
      Returns:
      this builder
    • build

      @Nonnull public OIDCRPSession build()
      Build the OIDCRPSession.
      Returns:
      the newly built object