@Mutable @ThreadSafety(level=NOT_THREADSAFE) public final class TrustStoreTrustManagerProperties extends java.lang.Object implements java.io.Serializable
TrustStoreTrustManager
.Constructor and Description |
---|
TrustStoreTrustManagerProperties(java.io.File trustStoreFile)
Creates a new set of trust manage provider properties for the specified
trust store file.
|
TrustStoreTrustManagerProperties(java.lang.String trustStorePath)
Creates a new set of trust manage provider properties for the specified
trust store file.
|
Modifier and Type | Method and Description |
---|---|
boolean |
allowNonFIPSInFIPSMode()
Indicates whether to allow access to a non-FIPS-compliant trust store even
when operating in FIPS-compliant mode.
|
boolean |
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.
|
java.security.Provider |
getProvider()
Retrieves the security provider to use to access the trust store, if a
non-default provider should be used.
|
java.lang.String |
getTrustStoreFormat()
Retrieves the format for the target trust store, if specified.
|
java.lang.String |
getTrustStorePath()
Retrieves the path to the target trust store file.
|
char[] |
getTrustStorePIN()
Retrieves the PIN needed to access the contents of the trust store, if
specified.
|
void |
setAllowNonFIPSInFIPSMode(boolean allowNonFIPSInFIPSMode)
Specifies whether to allow access to a non-FIPS-compliant trust store even
when operating in FIPS-compliant mode.
|
void |
setExamineValidityDates(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.
|
void |
setProvider(java.security.Provider provider)
Specifies the security provider to use to access the trust store.
|
void |
setTrustStoreFile(java.io.File trustStoreFile)
Specifies the target trust store file.
|
void |
setTrustStoreFormat(java.lang.String trustStoreFormat)
Specifies the format for the target trust store.
|
void |
setTrustStorePath(java.lang.String trustStorePath)
Specifies the path to the target trust store file.
|
void |
setTrustStorePIN(char[] trustStorePIN)
Specifies the PIN needed to access the contents of the trust store.
|
void |
setTrustStorePIN(java.lang.String trustStorePIN)
Specifies the PIN needed to access the contents of the trust store.
|
java.lang.String |
toString()
Retrieves a string representation of these properties.
|
void |
toString(java.lang.StringBuilder buffer)
Appends a string representation of these properties to the provided buffer.
|
public TrustStoreTrustManagerProperties(@NotNull java.io.File trustStoreFile)
trustStoreFile
- The target trust store file. It must not be
null
.public TrustStoreTrustManagerProperties(@NotNull java.lang.String trustStorePath)
trustStorePath
- The path to the target trust store file. It must
not be null
.@NotNull public java.lang.String getTrustStorePath()
public void setTrustStoreFile(@NotNull java.io.File trustStoreFile)
trustStoreFile
- The target trust store file. It must not be
null
.public void setTrustStorePath(@NotNull java.lang.String trustStorePath)
trustStorePath
- The path to the target trust store file. It must
not be null
.@Nullable public char[] getTrustStorePIN()
null
if none has been specified.public void setTrustStorePIN(@Nullable char[] trustStorePIN)
trustStorePIN
- The PIN needed to access the contents of the trust
store. It may be null
if no PIN is needed.public void setTrustStorePIN(@Nullable java.lang.String trustStorePIN)
trustStorePIN
- The PIN needed to access the contents of the trust
store. It may be null
if no PIN is needed.@Nullable public java.lang.String getTrustStoreFormat()
null
if a
default format should be used.public void setTrustStoreFormat(@Nullable java.lang.String trustStoreFormat)
trustStoreFormat
- The format for the target trust store. It may be
null
if a default format should be used.public boolean examineValidityDates()
true
if 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, or false
if not.public void setExamineValidityDates(boolean examineValidityDates)
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.@Nullable public java.security.Provider getProvider()
null
if a default provider should be used.public void setProvider(@Nullable java.security.Provider provider)
provider
- The security provider to use to access the trust store.
It may be null
if a default provider should be
used.public boolean allowNonFIPSInFIPSMode()
true
if access to a non-FIPS-compliant trust store should
be allowed even when operating in FIPS-compliant mode, or
false
if not.public void setAllowNonFIPSInFIPSMode(boolean allowNonFIPSInFIPSMode)
allowNonFIPSInFIPSMode
- Indicates whether to allow access to a
non-FIPS-compliant trust store even when
operating in FIPS-compliant mode.@NotNull public java.lang.String toString()
toString
in class java.lang.Object