Class TokenAuthAccessInterceptor

java.lang.Object
net.sourceforge.plantuml.security.authentication.token.TokenAuthAccessInterceptor
All Implemented Interfaces:
SecurityAccessInterceptor

public class TokenAuthAccessInterceptor extends java.lang.Object implements SecurityAccessInterceptor
Applies from SecurityAuthentication data plain token authentication access headers. This is a raw header injection with static data.
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    apply(SecurityAuthentication authentication, java.net.URLConnection connection)
    Applies from SecurityAuthentication data plain token authentication access headers.

    Methods inherited from class java.lang.Object

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

    • TokenAuthAccessInterceptor

      public TokenAuthAccessInterceptor()
  • Method Details

    • apply

      public void apply(SecurityAuthentication authentication, java.net.URLConnection connection)
      Applies from SecurityAuthentication data plain token authentication access headers.

      Expects headers.* key value pairs to pass it directly to the connection.

      Specified by:
      apply in interface SecurityAccessInterceptor
      Parameters:
      authentication - the determined authentication data to authorize for the endpoint access
      connection - the connection to the endpoint