Class BasicAuthAccessInterceptor

java.lang.Object
net.sourceforge.plantuml.security.authentication.basicauth.BasicAuthAccessInterceptor
All Implemented Interfaces:
SecurityAccessInterceptor

public class BasicAuthAccessInterceptor extends java.lang.Object implements SecurityAccessInterceptor
Applies from SecurityAuthentication data a BasicAuth authentication access header.
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    apply(SecurityAuthentication authentication, java.net.URLConnection connection)
    Applies from SecurityAuthentication data a BasicAuth authentication access header.

    Methods inherited from class java.lang.Object

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

    • BasicAuthAccessInterceptor

      public BasicAuthAccessInterceptor()
  • Method Details

    • apply

      public void apply(SecurityAuthentication authentication, java.net.URLConnection connection)
      Applies from SecurityAuthentication data a BasicAuth authentication access header.

      Expects "identifier" and "secret" to build a Authorization header.

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