|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.eclipse.jetty.security.authentication.LoginAuthenticator
org.eclipse.jetty.security.authentication.ClientCertAuthenticator
public class ClientCertAuthenticator
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface org.eclipse.jetty.security.Authenticator |
|---|
Authenticator.AuthConfiguration, Authenticator.Factory |
| Field Summary |
|---|
| Fields inherited from class org.eclipse.jetty.security.authentication.LoginAuthenticator |
|---|
_deferred, _identityService, _loginService, SESSION_SECURED |
| Constructor Summary | |
|---|---|
ClientCertAuthenticator()
|
|
| Method Summary | |
|---|---|
java.lang.String |
getAuthMethod()
|
java.lang.String |
getCrlPath()
Get the crlPath. |
protected java.security.KeyStore |
getKeyStore(java.io.InputStream storeStream,
java.lang.String storePath,
java.lang.String storeType,
java.lang.String storeProvider,
java.lang.String storePassword)
Loads keystore using an input stream or a file path in the same order of precedence. |
int |
getMaxCertPathLength()
|
java.lang.String |
getOcspResponderURL()
|
java.lang.String |
getTrustStore()
|
java.lang.String |
getTrustStoreProvider()
|
java.lang.String |
getTrustStoreType()
|
boolean |
isEnableCRLDP()
|
boolean |
isEnableOCSP()
|
boolean |
isValidateCerts()
|
protected java.util.Collection<? extends java.security.cert.CRL> |
loadCRL(java.lang.String crlPath)
Loads certificate revocation list (CRL) from a file. |
boolean |
secureResponse(javax.servlet.ServletRequest req,
javax.servlet.ServletResponse res,
boolean mandatory,
Authentication.User validatedUser)
|
void |
setCrlPath(java.lang.String crlPath)
Set the crlPath. |
void |
setEnableCRLDP(boolean enableCRLDP)
Enables CRL Distribution Points Support |
void |
setEnableOCSP(boolean enableOCSP)
Enables On-Line Certificate Status Protocol support |
void |
setMaxCertPathLength(int maxCertPathLength)
|
void |
setOcspResponderURL(java.lang.String ocspResponderURL)
Set the location of the OCSP Responder. |
void |
setTrustStore(java.lang.String trustStorePath)
|
void |
setTrustStorePassword(java.lang.String password)
|
void |
setTrustStoreProvider(java.lang.String trustStoreProvider)
|
void |
setTrustStoreType(java.lang.String trustStoreType)
|
void |
setValidateCerts(boolean validateCerts)
|
Authentication |
validateRequest(javax.servlet.ServletRequest req,
javax.servlet.ServletResponse res,
boolean mandatory)
Validate a response |
| Methods inherited from class org.eclipse.jetty.security.authentication.LoginAuthenticator |
|---|
getLoginService, renewSessionOnAuthentication, setConfiguration |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ClientCertAuthenticator()
| Method Detail |
|---|
public java.lang.String getAuthMethod()
public Authentication validateRequest(javax.servlet.ServletRequest req,
javax.servlet.ServletResponse res,
boolean mandatory)
throws ServerAuthException
Authenticator
req - The requestres - The responsemandatory - True if authentication is mandatory.
ServerAuthException
protected java.security.KeyStore getKeyStore(java.io.InputStream storeStream,
java.lang.String storePath,
java.lang.String storeType,
java.lang.String storeProvider,
java.lang.String storePassword)
throws java.lang.Exception
storeStream - keystore input streamstorePath - path of keystore filestoreType - keystore typestoreProvider - keystore providerstorePassword - keystore password
java.lang.Exception
protected java.util.Collection<? extends java.security.cert.CRL> loadCRL(java.lang.String crlPath)
throws java.lang.Exception
crlPath - path of certificate revocation list file
java.lang.Exception
public boolean secureResponse(javax.servlet.ServletRequest req,
javax.servlet.ServletResponse res,
boolean mandatory,
Authentication.User validatedUser)
throws ServerAuthException
ServerAuthExceptionpublic boolean isValidateCerts()
public void setValidateCerts(boolean validateCerts)
validateCerts - true if SSL certificates have to be validatedpublic java.lang.String getTrustStore()
public void setTrustStore(java.lang.String trustStorePath)
trustStorePath - The file name or URL of the trust store locationpublic java.lang.String getTrustStoreProvider()
public void setTrustStoreProvider(java.lang.String trustStoreProvider)
trustStoreProvider - The provider of the trust storepublic java.lang.String getTrustStoreType()
public void setTrustStoreType(java.lang.String trustStoreType)
trustStoreType - The type of the trust store (default "JKS")public void setTrustStorePassword(java.lang.String password)
password - The password for the trust storepublic java.lang.String getCrlPath()
public void setCrlPath(java.lang.String crlPath)
crlPath - the crlPath to setpublic int getMaxCertPathLength()
public void setMaxCertPathLength(int maxCertPathLength)
maxCertPathLength - maximum number of intermediate certificates in
the certification path (-1 for unlimited)public boolean isEnableCRLDP()
public void setEnableCRLDP(boolean enableCRLDP)
enableCRLDP - true - turn on, false - turns offpublic boolean isEnableOCSP()
public void setEnableOCSP(boolean enableOCSP)
enableOCSP - true - turn on, false - turn offpublic java.lang.String getOcspResponderURL()
public void setOcspResponderURL(java.lang.String ocspResponderURL)
ocspResponderURL - location of the OCSP Responder
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||