Package org.kohsuke.github.authorization
Class AuthorizationProvider.AnonymousAuthorizationProvider
- java.lang.Object
-
- org.kohsuke.github.authorization.AuthorizationProvider.AnonymousAuthorizationProvider
-
- All Implemented Interfaces:
AuthorizationProvider
- Enclosing interface:
- AuthorizationProvider
public static class AuthorizationProvider.AnonymousAuthorizationProvider extends Object implements AuthorizationProvider
AAuthorizationProviderthat ensures that no credentials are returned
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.kohsuke.github.authorization.AuthorizationProvider
AuthorizationProvider.AnonymousAuthorizationProvider
-
-
Field Summary
-
Fields inherited from interface org.kohsuke.github.authorization.AuthorizationProvider
ANONYMOUS
-
-
Constructor Summary
Constructors Constructor Description AnonymousAuthorizationProvider()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetEncodedAuthorization()Returns the credentials to be used with a given request.
-
-
-
Method Detail
-
getEncodedAuthorization
public String getEncodedAuthorization() throws IOException
Description copied from interface:AuthorizationProviderReturns the credentials to be used with a given request. As an example, a authorization provider for a bearer token will return something like:@Override public String getEncodedAuthorization() { return "Bearer myBearerToken"; }- Specified by:
getEncodedAuthorizationin interfaceAuthorizationProvider- Returns:
- encoded authorization string, can be null
- Throws:
IOException- on any error that prevents the provider from getting a valid authorization
-
-