public class Scope extends Object
AuthV3Credentials| Constructor and Description |
|---|
Scope(String domainId,
String projectId)
Constructs an authentication
Scope for AuthV3Credentials. |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
String |
getDomainId() |
String |
getProjectId() |
int |
hashCode() |
boolean |
isDomainScoped()
Returns
true if domain-scoped authentication is specified. |
boolean |
isProjectScoped()
Returns
true if project-scoped authentication is specified. |
void |
validate()
Validates the configuration.
|
public Scope(String domainId, String projectId)
Scope for AuthV3Credentials.domainId - The domain id in case domain-scoped authentication is used,
null otherwise.projectId - The project id in case project-scoped authentication is used,
null otherwise.public boolean isDomainScoped()
true if domain-scoped authentication is specified.public boolean isProjectScoped()
true if project-scoped authentication is specified.public void validate()
throws IllegalArgumentException
IllegalArgumentException is thrown.IllegalArgumentExceptionCopyright © 2011–2016 elastisys. All rights reserved.