APIdia Launch Partner
Top Description Fields Constructors Methods
sun.security.util

public Class AlgorithmDecomposer

extends Object
Class Inheritance
Known Direct Subclasses
sun.security.ssl.SSLAlgorithmDecomposer
Imports
java.util.*, java.util.regex.Pattern

The class decomposes standard algorithms into sub-elements.

Field Summary

Modifier and TypeField and Description
private static final Map<String, String>
private static final Pattern

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public Set<String>
decompose(String algorithm)

Decompose the standard algorithm name into sub-elements.

pack-priv static String

Returns:

the decomposed name, or the passed in algorithm name if it is not a digest algorithm or does not need to be decomposed
decomposeDigestName
(String
the name to be decomposed
algorithm
)

Decomposes a standard message digest algorithm name into a consistent name for matching purposes.

private static Set<String>
decomposeImpl(String algorithm)

pack-priv static Set<String>
decomposeName(String algorithm)

Decomposes a standard algorithm name into sub-elements and uses a consistent message digest algorithm name to avoid overly complicated checking.

public static Collection<String>
getAliases(String algorithm)

Get aliases of the specified algorithm.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

DECOMPOSED_DIGEST_NAMESback to summary
private static final Map<String, String> DECOMPOSED_DIGEST_NAMES
PATTERNback to summary
private static final Pattern PATTERN

Constructor Detail

AlgorithmDecomposerback to summary
public AlgorithmDecomposer()

Method Detail

decomposeback to summary
public Set<String> decompose(String algorithm)

Decompose the standard algorithm name into sub-elements.

For example, we need to decompose "SHA1WithRSA" into "SHA1" and "RSA" so that we can check the "SHA1" and "RSA" algorithm constraints separately.

Please override the method if you need to support more name pattern.

decomposeDigestNameback to summary
pack-priv static String decomposeDigestName(String algorithm)

Decomposes a standard message digest algorithm name into a consistent name for matching purposes.

Parameters
algorithm:String

the name to be decomposed

Returns:String

the decomposed name, or the passed in algorithm name if it is not a digest algorithm or does not need to be decomposed

decomposeImplback to summary
private static Set<String> decomposeImpl(String algorithm)
decomposeNameback to summary
pack-priv static Set<String> decomposeName(String algorithm)

Decomposes a standard algorithm name into sub-elements and uses a consistent message digest algorithm name to avoid overly complicated checking.

getAliasesback to summary
public static Collection<String> getAliases(String algorithm)

Get aliases of the specified algorithm. May support more algorithms in the future.