Package interlok.http.apache.credentials
Class ScopedCredential
- java.lang.Object
-
- interlok.http.apache.credentials.ScopedCredential
-
public class ScopedCredential extends java.lang.Object
Wraps aAuthScope
andCredentials
for insertion into aCredentialsProvider
-
-
Constructor Summary
Constructors Constructor Description ScopedCredential()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected org.apache.http.auth.AuthScope
authenticationScope()
protected org.apache.http.auth.Credentials
credentials()
AuthScopeBuilder
getAuthenticationScope()
The authentication scope associated with these credentials.@NotNull(message="No Credentials available to use") @NonNull CredentialsBuilder
getCredentials()
The credentials.void
setAuthenticationScope(AuthScopeBuilder authenticationScope)
The authentication scope associated with these credentials.void
setCredentials(@NotNull(message="No Credentials available to use") @NonNull CredentialsBuilder credentials)
The credentials.ScopedCredential
withCredentials(CredentialsBuilder builder)
ScopedCredential
withScope(AuthScopeBuilder scope)
-
-
-
Method Detail
-
authenticationScope
protected org.apache.http.auth.AuthScope authenticationScope()
-
credentials
protected org.apache.http.auth.Credentials credentials()
-
withScope
public ScopedCredential withScope(AuthScopeBuilder scope)
-
withCredentials
public ScopedCredential withCredentials(CredentialsBuilder builder)
-
getAuthenticationScope
public AuthScopeBuilder getAuthenticationScope()
The authentication scope associated with these credentials.
-
setAuthenticationScope
public void setAuthenticationScope(AuthScopeBuilder authenticationScope)
The authentication scope associated with these credentials.
-
getCredentials
@NotNull(message="No Credentials available to use") @NonNull public @NotNull(message="No Credentials available to use") @NonNull CredentialsBuilder getCredentials()
The credentials.
-
setCredentials
public void setCredentials(@NotNull(message="No Credentials available to use") @NonNull @NotNull(message="No Credentials available to use") @NonNull CredentialsBuilder credentials)
The credentials.
-
-