Package org.keycloak.common.crypto
Class UserIdentityExtractorProvider
java.lang.Object
org.keycloak.common.crypto.UserIdentityExtractorProvider
- Version:
- $Revision: 1 $
- Author:
- Peter Nalyvayko
-
Nested Class Summary
Modifier and TypeClassDescriptionclass
protected class
class
class
class
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptioneither
(UserIdentityExtractor extractor) getPatternIdentityExtractor
(String pattern, Function<X509Certificate[], String> valueToMatch) getSubjectAltNameExtractor
(int generalName) Obtains the subjectAltName given ageneralName
.abstract UserIdentityExtractor
getX500NameExtractor
(String identifier, Function<X509Certificate[], Principal> x500Name)
-
Constructor Details
-
UserIdentityExtractorProvider
public UserIdentityExtractorProvider()
-
-
Method Details
-
either
-
getCertificatePemIdentityExtractor
-
getPatternIdentityExtractor
public UserIdentityExtractor getPatternIdentityExtractor(String pattern, Function<X509Certificate[], String> valueToMatch) -
getX500NameExtractor
public abstract UserIdentityExtractor getX500NameExtractor(String identifier, Function<X509Certificate[], Principal> x500Name) -
getSubjectAltNameExtractor
public abstract UserIdentityExtractorProvider.SubjectAltNameExtractor getSubjectAltNameExtractor(int generalName) Obtains the subjectAltName given ageneralName
.- Parameters:
generalName
- an integer representing the general name. SeeX509Certificate.getSubjectAlternativeNames()
- Returns:
- the value from the subjectAltName extension
-