Class SecurityAuthentication

java.lang.Object
net.sourceforge.plantuml.security.authentication.SecurityAuthentication
All Implemented Interfaces:
SecurityCredentialsContainer

public class SecurityAuthentication extends java.lang.Object implements SecurityCredentialsContainer
The authentication to access an endpoint. This information will be generated by a SecurityAuthenticationInterceptor.
  • Constructor Summary

    Constructors
    Constructor
    Description
    SecurityAuthentication(java.lang.String type, java.lang.String shape, java.lang.String grantType, java.util.Map<java.lang.String,java.lang.Object> tokens)
     
    SecurityAuthentication(java.lang.String type, java.util.Map<java.lang.String,java.lang.Object> tokens)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Get called, if the secret information should be erased.
    java.lang.String
     
    java.lang.String
     
    java.util.Map<java.lang.String,java.lang.Object>
     
    java.lang.String
     
    boolean
    Requests the state of this authentication.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • SecurityAuthentication

      public SecurityAuthentication(java.lang.String type, java.util.Map<java.lang.String,java.lang.Object> tokens)
    • SecurityAuthentication

      public SecurityAuthentication(java.lang.String type, java.lang.String shape, java.lang.String grantType, java.util.Map<java.lang.String,java.lang.Object> tokens)
  • Method Details

    • getType

      public java.lang.String getType()
    • getShape

      public java.lang.String getShape()
    • getGrantType

      public java.lang.String getGrantType()
    • isPublic

      public boolean isPublic()
      Requests the state of this authentication.
      Returns:
      true, if we have no authentication.
    • getTokens

      public java.util.Map<java.lang.String,java.lang.Object> getTokens()
    • eraseCredentials

      public void eraseCredentials()
      Description copied from interface: SecurityCredentialsContainer
      Get called, if the secret information should be erased.
      Specified by:
      eraseCredentials in interface SecurityCredentialsContainer