Class AuthenticationDataHttps
- java.lang.Object
-
- org.apache.pulsar.broker.authentication.AuthenticationDataHttp
-
- org.apache.pulsar.broker.authentication.AuthenticationDataHttps
-
- All Implemented Interfaces:
AuthenticationDataSource
public class AuthenticationDataHttps extends AuthenticationDataHttp
-
-
Field Summary
Fields Modifier and Type Field Description protected java.security.cert.X509Certificate[]certificates-
Fields inherited from class org.apache.pulsar.broker.authentication.AuthenticationDataHttp
remoteAddress, request, subscription
-
-
Constructor Summary
Constructors Constructor Description AuthenticationDataHttps(javax.servlet.http.HttpServletRequest request)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.security.cert.X509Certificate[]getTlsCertificates()booleanhasDataFromTls()Check if data from TLS are available.-
Methods inherited from class org.apache.pulsar.broker.authentication.AuthenticationDataHttp
getHttpAuthType, getHttpHeader, getPeerAddress, getSubscription, hasDataFromHttp, hasDataFromPeer, hasSubscription, setSubscription
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.apache.pulsar.broker.authentication.AuthenticationDataSource
authenticate, getCommandData, hasDataFromCommand
-
-
-
-
Method Detail
-
hasDataFromTls
public boolean hasDataFromTls()
Description copied from interface:AuthenticationDataSourceCheck if data from TLS are available.- Returns:
- true if this authentication data contain data from TLS
-
getTlsCertificates
public java.security.cert.X509Certificate[] getTlsCertificates()
- Returns:
- a client certificate chain, or null if the data are not available
-
-