Class DefaultOriginalAwareOAuth2RefreshToken

  • All Implemented Interfaces:
    Serializable, org.springframework.security.oauth2.common.ExpiringOAuth2RefreshToken, org.springframework.security.oauth2.common.OAuth2RefreshToken

    public class DefaultOriginalAwareOAuth2RefreshToken
    extends org.springframework.security.oauth2.common.DefaultExpiringOAuth2RefreshToken
    Add a new token wrapper type that allows keeping track of the id for the original ancestor refresh token.
    See Also:
    OriginalAwareJwtAccessTokenConverter, RefreshToken.getAncestor(), Serialized Form
    • Constructor Detail

      • DefaultOriginalAwareOAuth2RefreshToken

        public DefaultOriginalAwareOAuth2RefreshToken​(String value,
                                                      Date expiration,
                                                      String oid)
    • Method Detail

      • getOid

        public String getOid()
      • equals

        public boolean equals​(Object o)
        Overrides:
        equals in class org.springframework.security.oauth2.common.DefaultOAuth2RefreshToken
      • canEqual

        protected boolean canEqual​(Object other)
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class org.springframework.security.oauth2.common.DefaultOAuth2RefreshToken
      • toString

        public String toString()
        Overrides:
        toString in class org.springframework.security.oauth2.common.DefaultOAuth2RefreshToken