Package io.gravitee.gateway.api.el
Class EvaluableSSLPrincipal
java.lang.Object
io.gravitee.gateway.api.el.EvaluableSSLPrincipal
- Direct Known Subclasses:
EmptyEvaluableSSLPrincipal
- Author:
- Florent CHAMFROY (florent.chamfroy at graviteesource.com), GraviteeSource Team
This class allows the TemplateEngine to access SSL attributes using the following syntax: "{#request.ssl.xxx.yyy}", where
- xxx can be client or server
- yyy can be one of
BCStyleASN1ObjectIdentifier value Examples: {#request.ssl.client.cn} or {#request.ssl.client.role} or {#request.ssl.server.serialnumber} or {#request.ssl.server.o} Even if the DN of a certificate can contain multiple OU and DC attributes, by default, only the first item will be returned. Examples: If DN = "CN=John Doe, OU=Test, OU=Test2, OU=Test3, O=ACME, C=US" Then {#request.ssl.client.ou} => Test To get all values, you may use the attributes field, which is an array {#request.ssl.client.attributes['ou'][0]} => Test {#request.ssl.client.attributes['ou'][1]} => Test2 {#request.ssl.client.attributes['ou'][2]} => Test3
-
Constructor Details
-
EvaluableSSLPrincipal
-
-
Method Details
-
getBusinessCategory
-
getC
-
getCn
-
getCountryOfCitizenship
-
getCountryOfResidence
-
getDateOfBirth
-
getDc
-
getDescription
-
getDmdName
-
getDnQualifier
-
getE
-
getEmailAddress
-
getGender
-
getGeneration
-
getGivenname
-
getInitials
-
getL
-
getName
-
getNameAtBirth
-
getO
-
getOrganizationIdentifier
-
getOu
-
getPlaceOfBirth
-
getPostalAddress
-
getPostalCode
-
getPseudonym
-
getRole
-
getSerialnumber
-
getSt
-
getStreet
-
getSurname
-
getT
-
getTelephoneNumber
-
getUid
-
getUniqueIdentifier
-
getUnstructuredAddress
-
getDn
-
getAttributes
Allow to fetch an attribute from its name (e.g.: CN) or attribute (e.g.: 2.5.4.6). The value returned is always an array of String- Returns:
- a case insensitive MultiValueMap of all available attributes. Meaning that, if "key" is an existing key, then getAttributes().get("KEY") returns the same value
-
isDefined
public boolean isDefined()- Returns:
- true if the principal exists and is defined
-