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
ConstructorsConstructorDescriptionDomain(String name, String description, List<DomainSpecification> specifications) -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturns the description of this domain.getName()Returns the name of the domain.Returns theDomainSpecifications for thisDomain.getUrl()Return the store relative URL of this domain.static Domainglobal()Returns the special "global" domain.inthashCode()booleanisGlobal()Tests if this is theglobal()domain.resolve()Resolve the correct domain instance.booleantest(DomainRequirement... requirements) booleantest(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 theDomainSpecifications for thisDomain.- Returns:
- the
DomainSpecifications 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:
trueif and only if this is theglobal()domain.- Since:
- 2.0
-
test
- Parameters:
requirements- theDomainRequirements to test.- Returns:
trueif and only if the suppliedDomainRequirements are a match for thisDomain.
-
test
- Parameters:
requirements- theDomainRequirements to test.- Returns:
trueif and only if the suppliedDomainRequirements are a match for thisDomain.
-
hashCode
public int hashCode() -
equals
-