Class SecurityConstants

java.lang.Object
net.devh.boot.grpc.common.security.SecurityConstants

public final class SecurityConstants extends Object
A helper class with constants related to grpc security.
  • Field Details

    • AUTHORIZATION_HEADER

      public static final Metadata.Key<String> AUTHORIZATION_HEADER
      A convenience constant that contains the key for the HTTP Authorization Header.
    • BASIC_AUTH_PREFIX

      public static final String BASIC_AUTH_PREFIX
      The prefix for basic auth as used in the AUTHORIZATION_HEADER. This library assumes that the both the username and password are UTF_8 encoded before being turned into a base64 string.
      See Also:
    • BEARER_AUTH_PREFIX

      public static final String BEARER_AUTH_PREFIX
      The prefix for bearer auth as used in the AUTHORIZATION_HEADER.
      See Also: