Class Domain
java.lang.Object
com.cloudbees.plugins.credentials.domains.Domain
- All Implemented Interfaces:
Serializable
A domain, within which credentials are common. For example a company may have a single sign-on domain where
a bunch of web applications, source control systems, issue trackers, etc all share the same username/password backing
database.
- See Also:
-
Constructor Summary
ConstructorDescriptionDomain
(String name, String description, List<DomainSpecification> specifications) -
Method Summary
Modifier and TypeMethodDescriptionboolean
Returns the description of this domain.getName()
Returns the name of the domain.Returns theDomainSpecification
s for thisDomain
.getUrl()
Return the store relative URL of this domain.static Domain
global()
Returns the special "global" domain.int
hashCode()
boolean
isGlobal()
Tests if this is theglobal()
domain.resolve()
Resolve the correct domain instance.boolean
test
(DomainRequirement... requirements) boolean
test
(List<DomainRequirement> requirements)
-
Constructor Details
-
Domain
@DataBoundConstructor public Domain(String name, String description, List<DomainSpecification> specifications)
-
-
Method Details
-
global
Returns the special "global" domain.- Returns:
- the special "global" domain.
-
resolve
Resolve the correct domain instance.- Returns:
- the correct domain instance (i.e. replaces the global domain with
global()
.
-
getDescription
Returns the description of this domain.- Returns:
- the description of this domain.
-
getSpecifications
Returns theDomainSpecification
s for thisDomain
.- Returns:
- the
DomainSpecification
s for thisDomain
.
-
getName
Returns the name of the domain.- Returns:
- the name of the domain.
-
getUrl
Return the store relative URL of this domain.- Returns:
- the store relative URL of this domain.
-
isGlobal
public boolean isGlobal()Tests if this is theglobal()
domain.- Returns:
true
if and only if this is theglobal()
domain.- Since:
- 2.0
-
test
- Parameters:
requirements
- theDomainRequirement
s to test.- Returns:
true
if and only if the suppliedDomainRequirement
s are a match for thisDomain
.
-
test
- Parameters:
requirements
- theDomainRequirement
s to test.- Returns:
true
if and only if the suppliedDomainRequirement
s are a match for thisDomain
.
-
hashCode
public int hashCode() -
equals
-