Class RefreshTokenClaimsSet

java.lang.Object
net.shibboleth.idp.plugin.oidc.op.token.support.TokenClaimsSet
net.shibboleth.idp.plugin.oidc.op.token.support.RefreshTokenClaimsSet

public final class RefreshTokenClaimsSet extends TokenClaimsSet
Class wrapping claims set for refresh token.
  • Field Details

  • Constructor Details

    • RefreshTokenClaimsSet

      private RefreshTokenClaimsSet(@Nonnull com.nimbusds.jwt.JWTClaimsSet refreshTokenClaimsSet)
      Private constructor for the parser.
      Parameters:
      refreshTokenClaimsSet - refresh token claims set
  • Method Details

    • getChainExp

      @Nullable public Instant getChainExp()
      Get expiration time of the token.
      Returns:
      expiration time of the token
    • parse

      @Nonnull public static RefreshTokenClaimsSet parse(@Nonnull @NotEmpty String refreshTokenClaimsSet) throws ParseException
      Parses refresh token from string (JSON).
      Parameters:
      refreshTokenClaimsSet - JSON String representation of the code
      Returns:
      AccessTokenClaimsSet instance if parsing is successful.
      Throws:
      ParseException - if parsing fails for example due to incompatible types.
    • parse

      @Nonnull public static RefreshTokenClaimsSet parse(@Nonnull @NotEmpty String wrappedAccessToken, @Nonnull DataSealer dataSealer) throws ParseException, DataSealerException
      Parses refresh token from sealed refresh token.
      Parameters:
      wrappedAccessToken - wrapped refresh token
      dataSealer - sealer to unwrap the refresh token
      Returns:
      refresh token claims set.
      Throws:
      ParseException - is thrown if unwrapped refresh token is not understood
      DataSealerException - is thrown if unwrapping fails