Class SecurityConstants
java.lang.Object
net.devh.boot.grpc.common.security.SecurityConstants
A helper class with constants related to grpc security.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Metadata.Key<String>
A convenience constant that contains the key for the HTTP Authorization Header.static final String
The prefix for basic auth as used in theAUTHORIZATION_HEADER
.static final String
The prefix for bearer auth as used in theAUTHORIZATION_HEADER
. -
Method Summary
-
Field Details
-
AUTHORIZATION_HEADER
A convenience constant that contains the key for the HTTP Authorization Header. -
BASIC_AUTH_PREFIX
The prefix for basic auth as used in theAUTHORIZATION_HEADER
. This library assumes that the both the username and password areUTF_8
encoded before being turned into a base64 string.- See Also:
-
BEARER_AUTH_PREFIX
The prefix for bearer auth as used in theAUTHORIZATION_HEADER
.- See Also:
-