com.adobe.livecycle.signatures.common
Class FIPSCompliance

java.lang.Object
  extended by com.adobe.livecycle.signatures.common.FIPSCompliance

public final class FIPSCompliance
extends java.lang.Object

Enables you to determine whether the digest algorithm is FIPS compliant.


Method Summary
static int getKeyLength(java.security.Key key)
          Returns the length of the specified key.
static int getKeyLength(java.security.Key key, java.security.AlgorithmParameters params)
          Gets the key length (currently supports RSA and DSA keys only).
static boolean isDigestAlgoCompliant(java.lang.String algName)
          Checks if the digest algorithm is FIPS compliant.
static boolean isEncryptAlgoCompliant(java.lang.String algName, java.security.Key key)
          Checks if the encryption algorithm and its key length is FIPS compliant.
static boolean isEncryptAlgoCompliant(java.lang.String algName, java.security.Key key, java.security.AlgorithmParameters params)
          Checks if the encryption algorithm and its key length is FIPS compliant.
static boolean isSignatureAlgoFIPSCompliant(java.lang.String alg, java.security.Key key)
          Check if the signature algorithm is FIPS compliant.
static boolean isSignatureAlgoFIPSCompliant(java.lang.String alg, java.security.Key key, java.security.AlgorithmParameters params)
          Check if the signature algorithm is FIPS compliant.
static java.util.Map parseSignatureAlgo(java.lang.String alg)
          For internal use.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

isDigestAlgoCompliant

public static boolean isDigestAlgoCompliant(java.lang.String algName)
Checks if the digest algorithm is FIPS compliant.

Parameters:
algName - A string value that specifies the name of the algorithm.
Returns:
A Boolean value that specifies whether the FIPS compliant.

isEncryptAlgoCompliant

public static boolean isEncryptAlgoCompliant(java.lang.String algName,
                                             java.security.Key key)
Checks if the encryption algorithm and its key length is FIPS compliant.

Parameters:
algName - A string value that specifies the name of the algorithm.
key - A Key that is used for encryption.
Returns:
A Boolean value that specifies whether the key length is FIPS compliant.

isEncryptAlgoCompliant

public static boolean isEncryptAlgoCompliant(java.lang.String algName,
                                             java.security.Key key,
                                             java.security.AlgorithmParameters params)
Checks if the encryption algorithm and its key length is FIPS compliant.

Parameters:
algName - A string value that specifies the name of the algorithm.
key - A Key that is used for encryption.
Returns:
A Boolean value that specifies whether the key length is FIPS compliant.

getKeyLength

public static int getKeyLength(java.security.Key key)
Returns the length of the specified key.


getKeyLength

public static int getKeyLength(java.security.Key key,
                               java.security.AlgorithmParameters params)
Gets the key length (currently supports RSA and DSA keys only).

Parameters:
key - The key for which a length value is returned.
Returns:
The length of the key.

parseSignatureAlgo

public static java.util.Map parseSignatureAlgo(java.lang.String alg)
For internal use. Do not invoke this method.


isSignatureAlgoFIPSCompliant

public static boolean isSignatureAlgoFIPSCompliant(java.lang.String alg,
                                                   java.security.Key key)
Check if the signature algorithm is FIPS compliant.

Parameters:
alg - A string value that specifies the name of the algorithm.
key - A Key that is used for encryption.
Returns:
A Boolean value that specifies whether the key length is FIPS compliant.

isSignatureAlgoFIPSCompliant

public static boolean isSignatureAlgoFIPSCompliant(java.lang.String alg,
                                                   java.security.Key key,
                                                   java.security.AlgorithmParameters params)
Check if the signature algorithm is FIPS compliant.

Parameters:
alg - A string value that specifies the name of the algorithm.
key - A Key that is used for encryption.
Returns:
A Boolean value that specifies whether the key length is FIPS compliant.


[an error occurred while processing this directive] [an error occurred while processing this directive]