Package com.unboundid.util.ssl
Class TrustStoreTrustManagerProperties
java.lang.Object
com.unboundid.util.ssl.TrustStoreTrustManagerProperties
- All Implemented Interfaces:
Serializable
@Mutable
@ThreadSafety(level=NOT_THREADSAFE)
public final class TrustStoreTrustManagerProperties
extends Object
implements Serializable
This class provides a data structure with information about properties to
use when accessing the
TrustStoreTrustManager.- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionTrustStoreTrustManagerProperties(File trustStoreFile) Creates a new set of trust manage provider properties for the specified trust store file.TrustStoreTrustManagerProperties(String trustStorePath) Creates a new set of trust manage provider properties for the specified trust store file. -
Method Summary
Modifier and TypeMethodDescriptionbooleanIndicates whether to allow access to a non-FIPS-compliant trust store even when operating in FIPS-compliant mode.booleanIndicates whether to reject a presented certificate chain if the current time is outside the validity window for any of the certificates in the chain.Retrieves the security provider to use to access the trust store, if a non-default provider should be used.Retrieves the format for the target trust store, if specified.Retrieves the path to the target trust store file.char[]Retrieves the PIN needed to access the contents of the trust store, if specified.voidsetAllowNonFIPSInFIPSMode(boolean allowNonFIPSInFIPSMode) Specifies whether to allow access to a non-FIPS-compliant trust store even when operating in FIPS-compliant mode.voidsetExamineValidityDates(boolean examineValidityDates) Specifies whether to reject a presented certificate chain if the current time is outside the validity window for any of the certificates in the chain.voidsetProvider(Provider provider) Specifies the security provider to use to access the trust store.voidsetTrustStoreFile(File trustStoreFile) Specifies the target trust store file.voidsetTrustStoreFormat(String trustStoreFormat) Specifies the format for the target trust store.voidsetTrustStorePath(String trustStorePath) Specifies the path to the target trust store file.voidsetTrustStorePIN(char[] trustStorePIN) Specifies the PIN needed to access the contents of the trust store.voidsetTrustStorePIN(String trustStorePIN) Specifies the PIN needed to access the contents of the trust store.toString()Retrieves a string representation of these properties.voidtoString(StringBuilder buffer) Appends a string representation of these properties to the provided buffer.
-
Constructor Details
-
TrustStoreTrustManagerProperties
Creates a new set of trust manage provider properties for the specified trust store file.- Parameters:
trustStoreFile- The target trust store file. It must not benull.
-
TrustStoreTrustManagerProperties
Creates a new set of trust manage provider properties for the specified trust store file.- Parameters:
trustStorePath- The path to the target trust store file. It must not benull.
-
-
Method Details
-
getTrustStorePath
Retrieves the path to the target trust store file.- Returns:
- The path to the target trust store file.
-
setTrustStoreFile
Specifies the target trust store file.- Parameters:
trustStoreFile- The target trust store file. It must not benull.
-
setTrustStorePath
Specifies the path to the target trust store file.- Parameters:
trustStorePath- The path to the target trust store file. It must not benull.
-
getTrustStorePIN
Retrieves the PIN needed to access the contents of the trust store, if specified.- Returns:
- The PIN needed to access the contents of the trust store, or
nullif none has been specified.
-
setTrustStorePIN
Specifies the PIN needed to access the contents of the trust store.- Parameters:
trustStorePIN- The PIN needed to access the contents of the trust store. It may benullif no PIN is needed.
-
setTrustStorePIN
Specifies the PIN needed to access the contents of the trust store.- Parameters:
trustStorePIN- The PIN needed to access the contents of the trust store. It may benullif no PIN is needed.
-
getTrustStoreFormat
Retrieves the format for the target trust store, if specified.- Returns:
- The format for the target trust store, or
nullif a default format should be used.
-
setTrustStoreFormat
Specifies the format for the target trust store.- Parameters:
trustStoreFormat- The format for the target trust store. It may benullif a default format should be used.
-
examineValidityDates
Indicates whether to reject a presented certificate chain if the current time is outside the validity window for any of the certificates in the chain.- Returns:
trueif the trust manager should reject the certificate chain if the current time is outside the validity window for any of the certificates in the chain, orfalseif not.
-
setExamineValidityDates
Specifies whether to reject a presented certificate chain if the current time is outside the validity window for any of the certificates in the chain.- Parameters:
examineValidityDates- Indicates whether to reject a presented certificate chain if the current time is outside the validity window for any of the certificates in the chain.
-
getProvider
Retrieves the security provider to use to access the trust store, if a non-default provider should be used.- Returns:
- The security provider to use to access the trust store, or
nullif a default provider should be used.
-
setProvider
Specifies the security provider to use to access the trust store.- Parameters:
provider- The security provider to use to access the trust store. It may benullif a default provider should be used.
-
allowNonFIPSInFIPSMode
Indicates whether to allow access to a non-FIPS-compliant trust store even when operating in FIPS-compliant mode.- Returns:
trueif access to a non-FIPS-compliant trust store should be allowed even when operating in FIPS-compliant mode, orfalseif not.
-
setAllowNonFIPSInFIPSMode
Specifies whether to allow access to a non-FIPS-compliant trust store even when operating in FIPS-compliant mode.- Parameters:
allowNonFIPSInFIPSMode- Indicates whether to allow access to a non-FIPS-compliant trust store even when operating in FIPS-compliant mode.
-
toString
Retrieves a string representation of these properties. -
toString
Appends a string representation of these properties to the provided buffer.- Parameters:
buffer- The buffer to which the information should be appended. It must not benull.
-