Package com.pingidentity.access
Class JCEAccessor
java.lang.Object
com.pingidentity.access.JCEAccessor
Allows access to the JCE implementation used by PingFederate. There are 3 JCE implementations used by PingFederate,
depending upon the configuration.
They are:
They are:
- The default SUN implementation.
- The Thales Luna implementation, used in conjunction with one of the Thales FIPS compatible devices.
- The Entrust nShield Connect (nCipher) implementation.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanTells whether it is possible for the JCE manager to export private keys.Deprecated.No replacement.Deprecated.No replacement.Deprecated.No replacement.Deprecated.No replacement.booleanDeprecated.As of release 6.11, useisFIPSCompliant().booleanTells whether PingFederate is configured with an HSM or is operating in BCFIPS mode.byte[]obfuscate(byte[] clearBytes) Deprecated.No replacement.byte[]unobfuscate(byte[] obfuscatedBytes) Deprecated.No replacement.
-
Constructor Details
-
JCEAccessor
public JCEAccessor()
-
-
Method Details
-
inLunaMode
Deprecated.As of release 6.11, useisFIPSCompliant(). -
isFIPSCompliant
public boolean isFIPSCompliant()Tells whether PingFederate is configured with an HSM or is operating in BCFIPS mode. The name of this method may be misleading as integration with an HSM for private key storage does not mean that PingFederate is operating in a FIPS-compliant fashion.- Returns:
- true if PingFederate is configured with an HSM or is operating in BCFIPS mode.
-
allowPrivateKeyExport
public boolean allowPrivateKeyExport()Tells whether it is possible for the JCE manager to export private keys. By default, the SUN implementation allows private keys to be exported. Other implementations may not allow private keys to be exported.- Returns:
- true if private keys can be exported, false otherwise.
-
getDefaultEncryptionCipher
Deprecated.No replacement.This provides access to the legacy encryption cipher used by PingFederate. If PingFederate is operating in default configuration, this will either beBlowfishfor the default JCE manager, orAESfor the other JCE manager implementations.- Returns:
- A
Cipherobject initialized to use the legacy algorithm and the hard-coded key
-
getDefaultDecryptionCipher
Deprecated.No replacement.Provides access to the legacy decryption cipher used by PingFederate. If PingFederate is operating in default configuration, this will either beBlowfishfor the default JCE manager, orAESfor the other JCE manager implementations.- Returns:
- A
Cipherobject initialized to use the legacy algorithm and the hard-coded key
-
getDefaultSecretKeySpec
Deprecated.No replacement.Provides aSecretKeySpecobject that was initialized using the legacy encryption algorithm and the hard-coded key.- Returns:
- the
SecretKeySpecobject.
-
getDefaultAlgorithm
Deprecated.No replacement.Gets the legacy encryption algorithm as a string. This will either beBlowfishfor the default JCE manager, orAESfor the other JCE manager implementations.- Returns:
BlowfishorAES, depending on which JCE manager implementation is used.
-
obfuscate
Deprecated.No replacement.This method is deprecated.- Parameters:
clearBytes- The bytes to obfuscate.- Returns:
- The obfuscated bytes.
-
unobfuscate
Deprecated.No replacement.This method is deprecated.- Parameters:
obfuscatedBytes- The obfuscated bytes that need to be unobfuscated.- Returns:
- The unobfuscated bytes.
-