Class ExternalIdentityRef
java.lang.Object
org.apache.jackrabbit.oak.spi.security.authentication.external.ExternalIdentityRef
- Direct Known Subclasses:
ExternalGroupRef
ExternalIdentityRef defines a reference to an external identity.-
Constructor Summary
ConstructorsConstructorDescriptionExternalIdentityRef(@NotNull String id, @Nullable String providerName) Creates a new external identity ref with the given id and provider name -
Method Summary
Modifier and TypeMethodDescriptionbooleanTests if the given object is an external identity reference and if it's getString() is equal to this.static @NotNull ExternalIdentityReffromString(@NotNull String str) Creates an external identity reference from a string representation.@NotNull StringgetId()Returns the id of the external identity.@Nullable StringReturns the name of the identity provider.@NotNull StringReturns a string representation of this external identity referenceinthashCode()toString()
-
Constructor Details
-
ExternalIdentityRef
Creates a new external identity ref with the given id and provider name- Parameters:
id- the id of the identity.providerName- the name of the identity provider
-
-
Method Details
-
getProviderName
Returns the name of the identity provider.- Returns:
- the name of the identity provider.
-
getId
Returns the id of the external identity. for example the DN of an LDAP user.- Returns:
- the id
-
getString
Returns a string representation of this external identity reference- Returns:
- a string representation.
-
fromString
Creates an external identity reference from a string representation.- Parameters:
str- the string- Returns:
- the reference
-
toString
-
equals
Tests if the given object is an external identity reference and if it's getString() is equal to this. Note, that there is no need to includeidandproviderfields in the comparison as the string representation already incorporates both. -
hashCode
public int hashCode()
-