Package com.pingidentity.access
Class JCEAccessor
- java.lang.Object
-
- com.pingidentity.access.JCEAccessor
-
public class JCEAccessor extends Object
Allows access to the JCE implementation used by PingFederate. There are 3 JCE implementations used by PingFederate, depending upon the configuration.
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 Constructor Description JCEAccessor()
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description booleanallowPrivateKeyExport()Tells whether it is possible for the JCE manager to export private keys.StringgetDefaultAlgorithm()Deprecated.No replacement.CiphergetDefaultDecryptionCipher()Deprecated.No replacement.CiphergetDefaultEncryptionCipher()Deprecated.No replacement.SecretKeySpecgetDefaultSecretKeySpec()Deprecated.No replacement.booleaninLunaMode()Deprecated.As of release 6.11, useisFIPSCompliant().booleanisFIPSCompliant()Tells 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.
-
-
-
Method Detail
-
inLunaMode
@Deprecated public boolean 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 public Cipher 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 public Cipher 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 public SecretKeySpec getDefaultSecretKeySpec()
Deprecated.No replacement.Provides aSecretKeySpecobject that was initialized using the legacy encryption algorithm and the hard-coded key.- Returns:
- the
SecretKeySpecobject.
-
getDefaultAlgorithm
@Deprecated public String 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 public byte[] obfuscate(byte[] clearBytes)
Deprecated.No replacement.This method is deprecated.- Parameters:
clearBytes- The bytes to obfuscate.- Returns:
- The obfuscated bytes.
-
unobfuscate
@Deprecated public byte[] unobfuscate(byte[] obfuscatedBytes)
Deprecated.No replacement.This method is deprecated.- Parameters:
obfuscatedBytes- The obfuscated bytes that need to be unobfuscated.- Returns:
- The unobfuscated bytes.
-
-