Class ExternalIdKeyFactory
java.lang.Object
com.google.gerrit.server.account.externalids.ExternalIdKeyFactory
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interface
static class
Default implementationExternalIdKeyFactory.Config
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionCreates an external ID key.Creates an external ID key.Parses an external ID key from its String representation
-
Constructor Details
-
ExternalIdKeyFactory
-
-
Method Details
-
create
Creates an external ID key.- Parameters:
scheme
- the scheme name, must not contain colons (':'). E.g.ExternalId.SCHEME_USERNAME
.id
- the external ID, must not contain colons (':')- Returns:
- the created external ID key
-
create
Creates an external ID key.- Parameters:
scheme
- the scheme name, must not contain colons (':'). E.g.ExternalId.SCHEME_USERNAME
.id
- the external ID, must not contain colons (':')userNameCaseInsensitive
- whether the external ID key is matched case insensitively- Returns:
- the created external ID key
-
parse
Parses an external ID key from its String representation- Parameters:
externalId
- String representation of external ID key (e.g. username:johndoe)- Returns:
- the external Id key object
-