Package org.keycloak.common.crypto
Class UserIdentityExtractorProvider
- java.lang.Object
-
- org.keycloak.common.crypto.UserIdentityExtractorProvider
-
public abstract class UserIdentityExtractorProvider extends Object
- Version:
- $Revision: 1 $
- Author:
- Peter Nalyvayko
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description class
UserIdentityExtractorProvider.OrBuilder
protected class
UserIdentityExtractorProvider.OrExtractor
class
UserIdentityExtractorProvider.PatternMatcher
class
UserIdentityExtractorProvider.SubjectAltNameExtractor
class
UserIdentityExtractorProvider.X500NameRDNExtractor
-
Constructor Summary
Constructors Constructor Description UserIdentityExtractorProvider()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description UserIdentityExtractorProvider.OrBuilder
either(UserIdentityExtractor extractor)
UserIdentityExtractor
getCertificatePemIdentityExtractor()
UserIdentityExtractor
getPatternIdentityExtractor(String pattern, Function<X509Certificate[],String> valueToMatch)
abstract UserIdentityExtractorProvider.SubjectAltNameExtractor
getSubjectAltNameExtractor(int generalName)
Obtains the subjectAltName given ageneralName
.abstract UserIdentityExtractor
getX500NameExtractor(String identifier, Function<X509Certificate[],Principal> x500Name)
-
-
-
Method Detail
-
either
public UserIdentityExtractorProvider.OrBuilder either(UserIdentityExtractor extractor)
-
getCertificatePemIdentityExtractor
public UserIdentityExtractor 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
-
-