39
39
import net .devh .boot .grpc .client .autoconfigure .GrpcClientSecurityAutoConfiguration ;
40
40
import net .devh .boot .grpc .client .inject .GrpcClient ;
41
41
import net .devh .boot .grpc .client .inject .StubTransformer ;
42
+ import net .devh .boot .grpc .common .security .SecurityConstants ;
42
43
43
44
/**
44
45
* Helper class with useful methods to create and configure some commonly used authentication schemes such as
@@ -166,7 +167,7 @@ public static StubTransformer mappedCredentialsStubTransformer(
166
167
*
167
168
* @param token the bearer token to use
168
169
* @return The newly created bearer auth credentials.
169
- * @see #BEARER_AUTH_PREFIX
170
+ * @see SecurityConstants #BEARER_AUTH_PREFIX
170
171
* @see #authorizationHeader(String)
171
172
*/
172
173
public static CallCredentials bearerAuth (final String token ) {
@@ -183,7 +184,7 @@ public static CallCredentials bearerAuth(final String token) {
183
184
* @param username The username to use.
184
185
* @param password The password to use.
185
186
* @return The newly created basic auth credentials.
186
- * @see #BASIC_AUTH_PREFIX
187
+ * @see SecurityConstants #BASIC_AUTH_PREFIX
187
188
* @see #encodeBasicAuth(String, String)
188
189
* @see #authorizationHeader(String)
189
190
*/
@@ -198,7 +199,7 @@ public static CallCredentials basicAuth(final String username, final String pass
198
199
* @param username The username to use.
199
200
* @param password The password to use.
200
201
* @return The encoded basic auth header value.
201
- * @see #BASIC_AUTH_PREFIX
202
+ * @see SecurityConstants #BASIC_AUTH_PREFIX
202
203
*/
203
204
public static String encodeBasicAuth (final String username , final String password ) {
204
205
requireNonNull (username , "username" );
@@ -223,7 +224,7 @@ public static String encodeBasicAuth(final String username, final String passwor
223
224
* @param authorization The authorization to use. The authorization usually starts with the scheme such as as
224
225
* {@code "Basic "} or {@code "Bearer "} followed by the actual authentication information.
225
226
* @return The newly created call credentials.
226
- * @see #AUTHORIZATION_HEADER
227
+ * @see SecurityConstants #AUTHORIZATION_HEADER
227
228
* @see #authorizationHeaders(Metadata)
228
229
*/
229
230
public static CallCredentials authorizationHeader (final String authorization ) {
0 commit comments