|
||||||||||
| 上一个类 下一个类 | 框架 无框架 | |||||||||
| 摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 | |||||||||
java.lang.Objectorg.eclipse.jetty.security.authentication.LoginAuthenticator
org.eclipse.jetty.security.authentication.ClientCertAuthenticator
public class ClientCertAuthenticator
| 嵌套类摘要 |
|---|
| 从接口 org.eclipse.jetty.security.Authenticator 继承的嵌套类/接口 |
|---|
Authenticator.AuthConfiguration, Authenticator.Factory |
| 字段摘要 |
|---|
| 从类 org.eclipse.jetty.security.authentication.LoginAuthenticator 继承的字段 |
|---|
_identityService, _loginService |
| 构造方法摘要 | |
|---|---|
ClientCertAuthenticator()
|
|
| 方法摘要 | |
|---|---|
String |
getAuthMethod()
|
String |
getCrlPath()
Get the crlPath. |
protected KeyStore |
getKeyStore(InputStream storeStream,
String storePath,
String storeType,
String storeProvider,
String storePassword)
Loads keystore using an input stream or a file path in the same order of precedence. |
int |
getMaxCertPathLength()
|
String |
getOcspResponderURL()
|
String |
getTrustStore()
|
String |
getTrustStoreProvider()
|
String |
getTrustStoreType()
|
boolean |
isEnableCRLDP()
|
boolean |
isEnableOCSP()
|
boolean |
isValidateCerts()
|
protected Collection<? extends CRL> |
loadCRL(String crlPath)
Loads certificate revocation list (CRL) from a file. |
boolean |
secureResponse(ServletRequest req,
ServletResponse res,
boolean mandatory,
Authentication.User validatedUser)
|
void |
setCrlPath(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(String ocspResponderURL)
Set the location of the OCSP Responder. |
void |
setTrustStore(String trustStorePath)
|
void |
setTrustStorePassword(String password)
|
void |
setTrustStoreProvider(String trustStoreProvider)
|
void |
setTrustStoreType(String trustStoreType)
|
void |
setValidateCerts(boolean validateCerts)
|
Authentication |
validateRequest(ServletRequest req,
ServletResponse res,
boolean mandatory)
Validate a response |
| 从类 org.eclipse.jetty.security.authentication.LoginAuthenticator 继承的方法 |
|---|
getLoginService, login, renewSession, setConfiguration |
| 从类 java.lang.Object 继承的方法 |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| 构造方法详细信息 |
|---|
public ClientCertAuthenticator()
| 方法详细信息 |
|---|
public String getAuthMethod()
public Authentication validateRequest(ServletRequest req,
ServletResponse res,
boolean mandatory)
throws ServerAuthException
Authenticator 复制的描述
req - The requestres - The responsemandatory - True if authentication is mandatory.
ServerAuthException
protected KeyStore getKeyStore(InputStream storeStream,
String storePath,
String storeType,
String storeProvider,
String storePassword)
throws Exception
storeStream - keystore input streamstorePath - path of keystore filestoreType - keystore typestoreProvider - keystore providerstorePassword - keystore password
Exception
protected Collection<? extends CRL> loadCRL(String crlPath)
throws Exception
crlPath - path of certificate revocation list file
Exception
public boolean secureResponse(ServletRequest req,
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 String getTrustStore()
public void setTrustStore(String trustStorePath)
trustStorePath - The file name or URL of the trust store locationpublic String getTrustStoreProvider()
public void setTrustStoreProvider(String trustStoreProvider)
trustStoreProvider - The provider of the trust storepublic String getTrustStoreType()
public void setTrustStoreType(String trustStoreType)
trustStoreType - The type of the trust store (default "JKS")public void setTrustStorePassword(String password)
password - The password for the trust storepublic String getCrlPath()
public void setCrlPath(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 String getOcspResponderURL()
public void setOcspResponderURL(String ocspResponderURL)
ocspResponderURL - location of the OCSP Responder
|
||||||||||
| 上一个类 下一个类 | 框架 无框架 | |||||||||
| 摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 | |||||||||