Class JWTTestProvider.TestAuthentication

  • All Implemented Interfaces:
    Serializable, Principal, org.springframework.security.core.Authentication, org.springframework.security.core.CredentialsContainer
    Enclosing class:
    JWTTestProvider

    protected static class JWTTestProvider.TestAuthentication
    extends org.springframework.security.authentication.AbstractAuthenticationToken
    Test class extending the AbstractAuthenticationToken to use with the generated token.
    See Also:
    Serialized Form
    • Constructor Detail

      • TestAuthentication

        public TestAuthentication​(String name,
                                  boolean authenticated,
                                  Collection<? extends org.springframework.security.core.GrantedAuthority> authorities,
                                  String tenantId)
    • Method Detail

      • getCredentials

        public Object getCredentials()
      • getPrincipal

        public Object getPrincipal()
      • equals

        public boolean equals​(Object object)
        Specified by:
        equals in interface Principal
        Overrides:
        equals in class org.springframework.security.authentication.AbstractAuthenticationToken
      • hashCode

        public int hashCode()
        Specified by:
        hashCode in interface Principal
        Overrides:
        hashCode in class org.springframework.security.authentication.AbstractAuthenticationToken