public class OpenShiftCredentialsProvider extends Object implements org.apache.http.client.CredentialsProvider, IAuthorizationStrategyVisitor
Constructor and Description |
---|
OpenShiftCredentialsProvider() |
Modifier and Type | Method and Description |
---|---|
void |
clear() |
org.apache.http.auth.Credentials |
getCredentials(org.apache.http.auth.AuthScope authscope) |
String |
getScheme() |
String |
getToken()
Get the token if known;
|
void |
setCredentials(org.apache.http.auth.AuthScope authscope,
org.apache.http.auth.Credentials credentials) |
void |
visit(BasicAuthorizationStrategy strategy) |
void |
visit(KerbrosBrokerAuthorizationStrategy strategy) |
void |
visit(TokenAuthorizationStrategy strategy) |
public String getToken()
public String getScheme()
public void visit(BasicAuthorizationStrategy strategy)
visit
in interface IAuthorizationStrategyVisitor
public void visit(TokenAuthorizationStrategy strategy)
visit
in interface IAuthorizationStrategyVisitor
public void visit(KerbrosBrokerAuthorizationStrategy strategy)
visit
in interface IAuthorizationStrategyVisitor
public void setCredentials(org.apache.http.auth.AuthScope authscope, org.apache.http.auth.Credentials credentials)
setCredentials
in interface org.apache.http.client.CredentialsProvider
public org.apache.http.auth.Credentials getCredentials(org.apache.http.auth.AuthScope authscope)
getCredentials
in interface org.apache.http.client.CredentialsProvider
public void clear()
clear
in interface org.apache.http.client.CredentialsProvider
Copyright © 2016 Red Hat, Inc. All rights reserved.