Package org.apache.tika.server.core
Class TlsConfig
java.lang.Object
org.apache.tika.server.core.TlsConfig
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intDefault warning threshold for certificate expiration (30 days). -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidCheck certificate expiration dates and log warnings for certificates expiring within the configured threshold.voidintbooleanbooleanisActive()Deprecated.booleanWhether a client certificate's revocation status (CRL or OCSP) must be confirmed; default true.booleanvoidsetActive(boolean active) Deprecated.since 4.2.0: atlsConfigblock turns TLS on; remove the block to turn it off.voidsetCertExpirationWarningDays(int certExpirationWarningDays) voidsetCheckRevocation(boolean checkRevocation) voidsetClientAuthenticationRequired(boolean clientAuthenticationRequired) voidsetClientAuthenticationWanted(boolean clientAuthenticationWanted) Deprecated.removed in 4.2.0: tika-server never reads client certificates; usesetClientAuthenticationRequired(boolean).voidsetExcludedCipherSuites(List<String> excludedCipherSuites) Deprecated.removed in 4.2.0: refused at startup; usejdk.tls.disabledAlgorithmsinjava.security.voidsetExcludedProtocols(List<String> excludedProtocols) Deprecated.removed in 4.2.0: refused at startup; use thejdk.tls.server.protocolssystem property.voidsetIncludedCipherSuites(List<String> includedCipherSuites) Deprecated.removed in 4.2.0: refused at startup; use thejdk.tls.server.cipherSuitessystem property.voidsetIncludedProtocols(List<String> includedProtocols) Deprecated.removed in 4.2.0: refused at startup; use thejdk.tls.server.protocolssystem property.voidsetKeyStoreFile(String keyStoreFile) voidsetKeyStorePassword(String keyStorePassword) voidsetKeyStoreType(String keyStoreType) voidsetTrustStoreFile(String trustStoreFile) voidsetTrustStorePassword(String trustStorePassword) voidsetTrustStoreType(String trustStoreType) toString()
-
Field Details
-
DEFAULT_CERT_EXPIRATION_WARNING_DAYS
public static final int DEFAULT_CERT_EXPIRATION_WARNING_DAYSDefault warning threshold for certificate expiration (30 days).- See Also:
-
-
Constructor Details
-
TlsConfig
public TlsConfig()
-
-
Method Details
-
isActive
Deprecated.since 4.2.0: aTlsConfigexists only when TLS is on. -
setActive
Deprecated.since 4.2.0: atlsConfigblock turns TLS on; remove the block to turn it off. -
getKeyStoreType
-
setKeyStoreType
-
getKeyStorePassword
-
setKeyStorePassword
-
getKeyStoreFile
-
setKeyStoreFile
-
getTrustStoreType
-
setTrustStoreType
-
getTrustStorePassword
-
setTrustStorePassword
-
getTrustStoreFile
-
setTrustStoreFile
-
checkInitialization
- Throws:
TikaConfigException
-
setClientAuthenticationWanted
Deprecated.removed in 4.2.0: tika-server never reads client certificates; usesetClientAuthenticationRequired(boolean). -
isClientAuthenticationRequired
public boolean isClientAuthenticationRequired() -
setClientAuthenticationRequired
public void setClientAuthenticationRequired(boolean clientAuthenticationRequired) -
setIncludedProtocols
Deprecated.removed in 4.2.0: refused at startup; use thejdk.tls.server.protocolssystem property. -
setExcludedProtocols
Deprecated.removed in 4.2.0: refused at startup; use thejdk.tls.server.protocolssystem property. -
setIncludedCipherSuites
Deprecated.removed in 4.2.0: refused at startup; use thejdk.tls.server.cipherSuitessystem property. -
setExcludedCipherSuites
Deprecated.removed in 4.2.0: refused at startup; usejdk.tls.disabledAlgorithmsinjava.security. -
isCheckRevocation
public boolean isCheckRevocation()Whether a client certificate's revocation status (CRL or OCSP) must be confirmed; default true. -
setCheckRevocation
public void setCheckRevocation(boolean checkRevocation) -
getCertExpirationWarningDays
public int getCertExpirationWarningDays() -
setCertExpirationWarningDays
public void setCertExpirationWarningDays(int certExpirationWarningDays) -
checkCertificateExpiration
public void checkCertificateExpiration()Check certificate expiration dates and log warnings for certificates expiring within the configured threshold.This method should be called after
checkInitialization()to warn about upcoming certificate expirations. -
toString
-
hasTrustStore
public boolean hasTrustStore()
-
TlsConfigexists only when TLS is on.