All Packages Class Hierarchy This Package Previous Next Index
Class orbasec.corba.MechUtil
java.lang.Object
|
+----orbasec.corba.MechUtil
- public class MechUtil
- extends Object
This class contains functions and maps for converting Mechanism
Identifiers to tags and back again.
Mechanism identifiers for ORBAsec SL2 at the SecurityLevel2 API
level are represented by
strings of the form:
mechanism_provider,cipher1,cipher2,...
Examples are:
"Kerberos_MIT,DES_CBC_CRC,DES_CBC_MD5"
"SSL_IAIK,SSL_DHE_DSS_WITH_DES_CBC_SHA"
Matching can happen on the initial part of the mechanism name,
but ciphers must match exactly, such as:
"Kerberos,DES_CBC_CRC"
"SSL,SSL_DHE_DSS_WITH_DES_CBC_SHA"
Will specify the Kerberos security mechanism from the default
provider (most will have only one).
Ciphers can be in number form symbolic form.
-
KERBEROS_CIPHER_IDS
- The symbolic cipher suite names for Kerberos
Note: all these cipher suites
may not be supported by some Kerberos Providers.
-
SSL_CIPHER_IDS
- The symbolic cipher suite names for SSL.
-
SSL_DH_ANON_EXPORT_MECH
- The SSL Mechanism string with only anonymous exportable
Diffe-Hillman
ordered from strongest to weakest.
-
SSL_DH_ANON_MECH
- The SSL Mechanism string with only anonymous Diffe-Hillman
cipher suites ordered from strongest to weakest.
-
SSL_DH_ANON_NON_EXPORT_MECH
- The SSL Mechanism string with only anonymous non-exportable
Diffe-Hillman
ordered from strongest to weakest.
-
SSL_DH_DSS_EXPORT_MECH
- The SSL Mechanism string containing cipher suites needing
DSA signed Diffe-Hillman certificates, using only exportable
encryption,
ordered from strongest to weakest.
-
SSL_DH_DSS_MECH
- The SSL Mechanism string containing cipher suites needing
DSA signed Diffe-Hillman certificates,
ordered from strongest to weakest.
-
SSL_DH_DSS_NON_EXORT_MECH
- The SSL Mechanism string containing cipher suites needing
DSA signed Diffe-Hillman certificates, using only non-exportable
encryption,
ordered from strongest to weakest.
-
SSL_DH_RSA_EXPORT_MECH
- The SSL Mechanism string containing cipher suites needing
RSA signed Diffe-Hillman certificates, using only exportable
encryption,
ordered from strongest to weakest.
-
SSL_DH_RSA_MECH
- The SSL Mechanism string containing cipher suites needing
RSA signed Diffe-Hillman certificates,
ordered from strongest to weakest.
-
SSL_DH_RSA_NON_EXPORT_MECH
- The SSL Mechanism string containing cipher suites needing
RSA signed Diffe-Hillman certificates, using only non-exportable
encryption,
ordered from strongest to weakest.
-
SSL_DHE_DSS_EXPORT_MECH
- The SSL Mechanism string containing cipher suites needing
DSA signed Diffe-Hillman Ephemeral certificates, using
only exportable encryption,
ordered from strongest to weakest.
-
SSL_DHE_DSS_MECH
- The SSL Mechanism string containing cipher suites needing
DSA signed Diffe-Hillman Ephemeral certificates,
ordered from strongest to weakest.
-
SSL_DHE_DSS_NON_EXPORT_MECH
- The SSL Mechanism string containing cipher suites needing
DSA signed Diffe-Hillman Ephemeral certificates, using
only non-exportable encryption,
ordered from strongest to weakest.
-
SSL_DHE_RSA_EXPORT_MECH
- The SSL Mechanism string containing cipher suites needing
RSA signed Diffe-Hillman Ephemeral certificates, using
only exportable encryption,
ordered from strongest to weakest.
-
SSL_DHE_RSA_MECH
- The SSL Mechanism string containing cipher suites needing
RSA signed Diffe-Hillman Ephemeral certificates,
ordered from strongest to weakest.
-
SSL_DHE_RSA_NON_EXPORT_MECH
- The SSL Mechanism string containing cipher suites needing
RSA signed Diffe-Hillman Ephemeral certificates, using
only non-exportable encryption,
ordered from strongest to weakest.
-
SSL_NON_ANON_EXPORT_MECH
- The SSL Mechanism string with no anonymous Diffe-Hillman
cipher suites, but each cipher suite is exportable.
-
SSL_NON_ANON_EXPORT_NO_RSA_MECH
- The SSL Mechanism string with no anonymous Diffe-Hillman
cipher suites and no RSA cipher suites,
but each cipher suite is exportable.
-
SSL_NON_ANON_MECH
- The SSL Mechanism string with no anonymous Diffe-Hillman
cipher suites.
-
SSL_NON_ANON_NO_RSA_MECH
- The SSL Mechanism string with no anonymous Diffe-Hillman
cipher suites and no RSA based cipher suites.
-
SSL_NON_ANON_NON_EXPORT_MECH
- The SSL Mechanism string with no anonymous Diffe-Hillman
cipher suites, but all ciphers are non-exportable.
-
SSL_NON_ANON_NON_EXPORT_NO_RSA_MECH
- The SSL Mechanism string with no anonymous Diffe-Hillman
cipher suites and no RSA cipher suites,
but all ciphers are non-exportable.
-
SSL_RSA_EXPORT_MECH
- The SSL Mechanism string containing cipher suites needing
RSA certificates, using
only exportable encryption,
ordered from strongest to weakest.
-
SSL_RSA_MECH
- The SSL Mechanism string containing cipher suites needing
RSA certificates,
ordered from strongest to weakest.
-
SSL_RSA_NON_EXPORT_MECH
- The SSL Mechanism string containing cipher suites needing
RSA certificates, using
only non-exportable encryption,
ordered from strongest to weakest.
-
MechUtil()
-
-
genericMechSupportsMech(String, String)
- This function return true if the generic mechanism is
equal and the first parameter's crypto_profile "supports"
the second's crypto profile.
-
getComponentTags()
- This funciton returns all the mechanism component tag numbers that
can represent the all security mechansims.
-
getComponentTags(String)
- This funciton returns the mechanism component tag numbers that
can represent the security mechansim.
-
getCryptoProfile(String)
- This function returns the SECIOP::CryptographicProfileList (
short[] associated with the mechanism symbolic identifier.
-
getMechanismKeys()
- This call gets the registration keys for all the mechanisms.
-
getPreferredComponentTag(String)
- This function returns the mechanism component tag number that
we prefer to use when cranking out a security component.
-
getSymbolicMechanism(String, short[])
- This call constructs a symbolic mechanism name for use with the
SecurityLevel2 API.
-
main(String[])
- Testing main program.
-
mechSupportsCommonMech(String, String)
- This function returns true if the two mechanisms
have a common cipher suite.
-
mechSupportsMech(String, String)
- This function returns true if the first parameter "supports"
the second.
-
registerMechanism(String, int[], String[], String[], String[])
- This call registers a a new cipher to number list for a mechanism.
-
resolveMechanism(String)
- This function resolves the mechanism string, possibly one with
just numbers to a symbolic mechanism string.
KERBEROS_CIPHER_IDS
public static final String KERBEROS_CIPHER_IDS[]
- The symbolic cipher suite names for Kerberos
Note: all these cipher suites
may not be supported by some Kerberos Providers.
SSL_CIPHER_IDS
public static final String SSL_CIPHER_IDS[]
- The symbolic cipher suite names for SSL.
Note: all these cipher suites
may not be supported by some SSL Providers.
SSL_NON_ANON_MECH
public static final String SSL_NON_ANON_MECH
- The SSL Mechanism string with no anonymous Diffe-Hillman
cipher suites. Each cipher used needs a signed certificate.
These are ordered from the strongest to the weakest in
there particular certificate class.
SSL,
SSL_DH_DSS_WITH_3DES_EDE_CBC_SHA,
SSL_DH_DSS_WITH_DES_CBC_SHA,
SSL_DH_DSS_EXPORT_WITH_DES40_CBC_SHA,
SSL_DHE_DSS_WITH_3DES_EDE_CBC_SHA,
SSL_DHE_DSS_WITH_DES_CBC_SHA,
SSL_DHE_DSS_EXPORT_WITH_DES40_CBC_SHA,
SSL_DH_RSA_WITH_3DES_EDE_CBC_SHA,
SSL_DH_RSA_EXPORT_WITH_DES40_CBC_SHA,
SSL_DH_RSA_WITH_DES_CBC_SHA,
SSL_DHE_RSA_WITH_3DES_EDE_CBC_SHA,
SSL_DHE_RSA_WITH_DES_CBC_SHA,
SSL_DHE_RSA_EXPORT_WITH_DES40_CBC_SHA,
SSL_RSA_WITH_3DES_EDE_CBC_SHA,
SSL_RSA_WITH_DES_CBC_SHA,
SSL_RSA_WITH_IDEA_CBC_SHA,
SSL_RSA_WITH_RC4_SHA,
SSL_RSA_WITH_RC4_MD5,
SSL_RSA_EXPORT_WITH_DES40_CBC_SHA,
SSL_RSA_EXPORT_WITH_RC2_CBC_40_MD5,
SSL_RSA_EXPORT_WITH_RC4_40_MD5,
SSL_RSA_WITH_NULL_SHA,
SSL_RSA_WITH_NULL_MD5
SSL_NON_ANON_NO_RSA_MECH
public static final String SSL_NON_ANON_NO_RSA_MECH
- The SSL Mechanism string with no anonymous Diffe-Hillman
cipher suites and no RSA based cipher suites.
Each cipher used needs a signed certificate.
These are ordered from the strongest to the weakest in
there particular certificate class.
SSL,
SSL_DH_DSS_WITH_3DES_EDE_CBC_SHA,
SSL_DH_DSS_WITH_DES_CBC_SHA,
SSL_DH_DSS_EXPORT_WITH_DES40_CBC_SHA,
SSL_DHE_DSS_WITH_3DES_EDE_CBC_SHA,
SSL_DHE_DSS_WITH_DES_CBC_SHA,
SSL_DHE_DSS_EXPORT_WITH_DES40_CBC_SHA
SSL_NON_ANON_EXPORT_MECH
public static final String SSL_NON_ANON_EXPORT_MECH
- The SSL Mechanism string with no anonymous Diffe-Hillman
cipher suites, but each cipher suite is exportable.
Each cipher used needs a signed certificate.
These are ordered from the strongest to the weakest in
there particular certificate class.
SSL,
SSL_DH_DSS_EXPORT_WITH_DES40_CBC_SHA,
SSL_DHE_DSS_EXPORT_WITH_DES40_CBC_SHA,
SSL_DH_RSA_EXPORT_WITH_DES40_CBC_SHA,
SSL_DHE_RSA_EXPORT_WITH_DES40_CBC_SHA,
SSL_RSA_EXPORT_WITH_DES40_CBC_SHA,
SSL_RSA_EXPORT_WITH_RC2_CBC_40_MD5,
SSL_RSA_EXPORT_WITH_RC4_40_MD5,
SSL_RSA_WITH_NULL_SHA,
SSL_RSA_WITH_NULL_MD5
SSL_NON_ANON_EXPORT_NO_RSA_MECH
public static final String SSL_NON_ANON_EXPORT_NO_RSA_MECH
- The SSL Mechanism string with no anonymous Diffe-Hillman
cipher suites and no RSA cipher suites,
but each cipher suite is exportable.
Each cipher used needs a signed certificate.
These are ordered from the strongest to the weakest in
there particular certificate class.
SSL,
SSL_DH_DSS_EXPORT_WITH_DES40_CBC_SHA,
SSL_DHE_DSS_EXPORT_WITH_DES40_CBC_SHA
SSL_NON_ANON_NON_EXPORT_MECH
public static final String SSL_NON_ANON_NON_EXPORT_MECH
- The SSL Mechanism string with no anonymous Diffe-Hillman
cipher suites, but all ciphers are non-exportable.
Each cipher used needs a signed certificate.
These are ordered from the strongest to the weakest in
there particular certificate class.
SSL,
SSL_DH_DSS_WITH_3DES_EDE_CBC_SHA,
SSL_DH_DSS_WITH_DES_CBC_SHA,
SSL_DHE_DSS_WITH_3DES_EDE_CBC_SHA,
SSL_DHE_DSS_WITH_DES_CBC_SHA,
SSL_DH_RSA_WITH_3DES_EDE_CBC_SHA,
SSL_DH_RSA_WITH_DES_CBC_SHA,
SSL_DHE_RSA_WITH_3DES_EDE_CBC_SHA,
SSL_DHE_RSA_WITH_DES_CBC_SHA,
SSL_RSA_WITH_3DES_EDE_CBC_SHA,
SSL_RSA_WITH_DES_CBC_SHA,
SSL_RSA_WITH_IDEA_CBC_SHA,
SSL_RSA_WITH_RC4_SHA
SSL_NON_ANON_NON_EXPORT_NO_RSA_MECH
public static final String SSL_NON_ANON_NON_EXPORT_NO_RSA_MECH
- The SSL Mechanism string with no anonymous Diffe-Hillman
cipher suites and no RSA cipher suites,
but all ciphers are non-exportable.
Each cipher used needs a signed certificate.
These are ordered from the strongest to the weakest in
there particular certificate class.
SSL,
SSL_DH_DSS_WITH_3DES_EDE_CBC_SHA,
SSL_DH_DSS_WITH_DES_CBC_SHA,
SSL_DHE_DSS_WITH_3DES_EDE_CBC_SHA,
SSL_DHE_DSS_WITH_DES_CBC_SHA
SSL_DH_ANON_MECH
public static final String SSL_DH_ANON_MECH
- The SSL Mechanism string with only anonymous Diffe-Hillman
cipher suites ordered from strongest to weakest.
SSL,
SSL_DH_anon_WITH_3DES_EDE_CBC_SHA,
SSL_DH_anon_WITH_DES_CBC_SHA,
SSL_DH_anon_WITH_RC4_MD5,
SSL_DH_anon_EXPORT_WITH_DES40_CBC_SHA,
SSL_DH_anon_EXPORT_WITH_RC4_40_MD5
SSL_DH_ANON_EXPORT_MECH
public static final String SSL_DH_ANON_EXPORT_MECH
- The SSL Mechanism string with only anonymous exportable
Diffe-Hillman
ordered from strongest to weakest.
SSL,
SSL_DH_anon_EXPORT_WITH_DES40_CBC_SHA,
SSL_DH_anon_EXPORT_WITH_RC4_40_MD5
SSL_DH_ANON_NON_EXPORT_MECH
public static final String SSL_DH_ANON_NON_EXPORT_MECH
- The SSL Mechanism string with only anonymous non-exportable
Diffe-Hillman
ordered from strongest to weakest.
SSL,
SSL_DH_anon_WITH_3DES_EDE_CBC_SHA,
SSL_DH_anon_WITH_DES_CBC_SHA,
SSL_DH_anon_WITH_RC4_MD5
SSL_DH_DSS_MECH
public static final String SSL_DH_DSS_MECH
- The SSL Mechanism string containing cipher suites needing
DSA signed Diffe-Hillman certificates,
ordered from strongest to weakest.
SSL,
SSL_DH_DSS_WITH_3DES_EDE_CBC_SHA,
SSL_DH_DSS_WITH_DES_CBC_SHA,
SSL_DH_DSS_EXPORT_WITH_DES40_CBC_SHA
SSL_DH_DSS_EXPORT_MECH
public static final String SSL_DH_DSS_EXPORT_MECH
- The SSL Mechanism string containing cipher suites needing
DSA signed Diffe-Hillman certificates, using only exportable
encryption,
ordered from strongest to weakest.
SSL,
SSL_DH_DSS_EXPORT_WITH_DES40_CBC_SHA
SSL_DH_DSS_NON_EXORT_MECH
public static final String SSL_DH_DSS_NON_EXORT_MECH
- The SSL Mechanism string containing cipher suites needing
DSA signed Diffe-Hillman certificates, using only non-exportable
encryption,
ordered from strongest to weakest.
SSL,
SSL_DH_DSS_WITH_3DES_EDE_CBC_SHA,
SSL_DH_DSS_WITH_DES_CBC_SHA
SSL_DHE_DSS_MECH
public static final String SSL_DHE_DSS_MECH
- The SSL Mechanism string containing cipher suites needing
DSA signed Diffe-Hillman Ephemeral certificates,
ordered from strongest to weakest.
SSL,
SSL_DHE_DSS_WITH_3DES_EDE_CBC_SHA,
SSL_DHE_DSS_WITH_DES_CBC_SHA,
SSL_DHE_DSS_EXPORT_WITH_DES40_CBC_SHA
SSL_DHE_DSS_EXPORT_MECH
public static final String SSL_DHE_DSS_EXPORT_MECH
- The SSL Mechanism string containing cipher suites needing
DSA signed Diffe-Hillman Ephemeral certificates, using
only exportable encryption,
ordered from strongest to weakest.
SSL,
SSL_DHE_DSS_EXPORT_WITH_DES40_CBC_SHA
SSL_DHE_DSS_NON_EXPORT_MECH
public static final String SSL_DHE_DSS_NON_EXPORT_MECH
- The SSL Mechanism string containing cipher suites needing
DSA signed Diffe-Hillman Ephemeral certificates, using
only non-exportable encryption,
ordered from strongest to weakest.
SSL,
SSL_DHE_DSS_WITH_3DES_EDE_CBC_SHA,
SSL_DHE_DSS_WITH_DES_CBC_SHA
SSL_DH_RSA_MECH
public static final String SSL_DH_RSA_MECH
- The SSL Mechanism string containing cipher suites needing
RSA signed Diffe-Hillman certificates,
ordered from strongest to weakest.
SSL,
SSL_DH_RSA_WITH_3DES_EDE_CBC_SHA,
SSL_DH_RSA_EXPORT_WITH_DES40_CBC_SHA,
SSL_DH_RSA_WITH_DES_CBC_SHA
SSL_DH_RSA_EXPORT_MECH
public static final String SSL_DH_RSA_EXPORT_MECH
- The SSL Mechanism string containing cipher suites needing
RSA signed Diffe-Hillman certificates, using only exportable
encryption,
ordered from strongest to weakest.
SSL,
SSL_DH_RSA_EXPORT_WITH_DES40_CBC_SHA
SSL_DH_RSA_NON_EXPORT_MECH
public static final String SSL_DH_RSA_NON_EXPORT_MECH
- The SSL Mechanism string containing cipher suites needing
RSA signed Diffe-Hillman certificates, using only non-exportable
encryption,
ordered from strongest to weakest.
SSL,
SSL_DH_RSA_WITH_3DES_EDE_CBC_SHA,
SSL_DH_RSA_WITH_DES_CBC_SHA
SSL_DHE_RSA_MECH
public static final String SSL_DHE_RSA_MECH
- The SSL Mechanism string containing cipher suites needing
RSA signed Diffe-Hillman Ephemeral certificates,
ordered from strongest to weakest.
SSL,
SSL_DHE_RSA_WITH_3DES_EDE_CBC_SHA,
SSL_DHE_RSA_WITH_DES_CBC_SHA,
SSL_DHE_RSA_EXPORT_WITH_DES40_CBC_SHA
SSL_DHE_RSA_EXPORT_MECH
public static final String SSL_DHE_RSA_EXPORT_MECH
- The SSL Mechanism string containing cipher suites needing
RSA signed Diffe-Hillman Ephemeral certificates, using
only exportable encryption,
ordered from strongest to weakest.
SSL,
SSL_DHE_RSA_EXPORT_WITH_DES40_CBC_SHA
SSL_DHE_RSA_NON_EXPORT_MECH
public static final String SSL_DHE_RSA_NON_EXPORT_MECH
- The SSL Mechanism string containing cipher suites needing
RSA signed Diffe-Hillman Ephemeral certificates, using
only non-exportable encryption,
ordered from strongest to weakest.
SSL,
SSL_DHE_RSA_WITH_3DES_EDE_CBC_SHA,
SSL_DHE_RSA_WITH_DES_CBC_SHA
SSL_RSA_MECH
public static final String SSL_RSA_MECH
- The SSL Mechanism string containing cipher suites needing
RSA certificates,
ordered from strongest to weakest.
SSL,"+
SSL_RSA_WITH_3DES_EDE_CBC_SHA,
SSL_RSA_WITH_DES_CBC_SHA,
SSL_RSA_WITH_IDEA_CBC_SHA,
SSL_RSA_WITH_RC4_SHA,
SSL_RSA_WITH_RC4_MD5,
SSL_RSA_EXPORT_WITH_DES40_CBC_SHA,
SSL_RSA_EXPORT_WITH_RC2_CBC_40_MD5,
SSL_RSA_EXPORT_WITH_RC4_40_MD5,
SSL_RSA_WITH_NULL_SHA,
SSL_RSA_WITH_NULL_MD5
SSL_RSA_EXPORT_MECH
public static final String SSL_RSA_EXPORT_MECH
- The SSL Mechanism string containing cipher suites needing
RSA certificates, using
only exportable encryption,
ordered from strongest to weakest.
SSL,
SSL_RSA_WITH_NULL_SHA,
SSL_RSA_WITH_NULL_MD5,
SSL_RSA_EXPORT_WITH_DES40_CBC_SHA,
SSL_RSA_EXPORT_WITH_RC2_CBC_40_MD5,
SSL_RSA_EXPORT_WITH_RC4_40_MD5
SSL_RSA_NON_EXPORT_MECH
public static final String SSL_RSA_NON_EXPORT_MECH
- The SSL Mechanism string containing cipher suites needing
RSA certificates, using
only non-exportable encryption,
ordered from strongest to weakest.
SSL,
SSL_RSA_WITH_3DES_EDE_CBC_SHA,
SSL_RSA_WITH_DES_CBC_SHA,
SSL_RSA_WITH_IDEA_CBC_SHA,
SSL_RSA_WITH_RC4_SHA,
SSL_RSA_WITH_RC4_MD5
MechUtil
public MechUtil()
getMechanismKeys
public static String[] getMechanismKeys()
- This call gets the registration keys for all the mechanisms.
registerMechanism
public static void registerMechanism(String name,
int tags[],
String mech_keys[],
String numbers[],
String ids[])
- This call registers a a new cipher to number list for a mechanism.
- Parameters:
- name - The "general" symbolic name of the mechanism, without
the provider, such as "Kerberos", or "SSL".
- tags - The tags used for the security component. The first
tag is the prefered one when creating a security component
for this mechanism. The tag stipulates the format of
the security mechanism component.
- mech_keys - The keys at which to register the mechanism cipher
translator. Usually this is the given name, and
its number.
- numbers - The list of cipher suite numbers.
- ids - The list of cipher suite symbolic names corresponding
to the list of numbers.
getSymbolicMechanism
public static String getSymbolicMechanism(String mechanism,
short crypto_profile[])
- This call constructs a symbolic mechanism name for use with the
SecurityLevel2 API. Its return value
is meant to be used as the mechansim
identifer for Credentials when created by the Vault.
getSymbolicMechanism("Kerberos_MIT", [16,11]);
would return
"Kerberos_MIT,DES_CBC_CRC,DES_CBC_MD5".
The front part of the given mechanism identifer must match
the registration of the mechanism. "Kerberos_MIT" will match
a mechanism cipher coder registered under "Kerberos".
resolveMechanism
public static String resolveMechanism(String mechanism)
- This function resolves the mechanism string, possibly one with
just numbers to a symbolic mechanism string.
getCryptoProfile
public static final short[] getCryptoProfile(String mechanism)
- This function returns the SECIOP::CryptographicProfileList (
short[] associated with the mechanism symbolic identifier.
A call to:
getCryptoProfile("Kerberos_MIT,DES_CBC_CRC,DES_CBC_MD5")
will return an array of shorts containing [16,11].
getComponentTags
public static final int[] getComponentTags(String mechanism)
- This funciton returns the mechanism component tag numbers that
can represent the security mechansim.
getComponentTags
public static final int[] getComponentTags()
- This funciton returns all the mechanism component tag numbers that
can represent the all security mechansims.
getPreferredComponentTag
public static final int getPreferredComponentTag(String mechanism)
- This function returns the mechanism component tag number that
we prefer to use when cranking out a security component. The
tag stipulates the format of the security component. The
prefered one, is the first of the list.
This function throws an exception if it cannot find the mechanism.
mechSupportsMech
public static boolean mechSupportsMech(String supporter,
String supportee)
- This function returns true if the first parameter "supports"
the second. For example,
"Kerberos_MIT,DES_CBC_CRC,DES_CBC_MD5"
supports
"Kerberos,DES_CBC_MD5"
However, we assume that if the "supporter" does not list
any ciphers, then it supports anything. Such as:
"SSL"
supports
"SSL,SSL_DH_DSS_WITH_3DES_EDE_CBC_SHA"
mechSupportsCommonMech
public static boolean mechSupportsCommonMech(String supporter,
String supportee)
- This function returns true if the two mechanisms
have a common cipher suite.
"Kerberos_MIT,DES_CBC_CRC,DES_CBC_MD5"
supports
"Kerberos,DES_CBC_MD5"
However, we assume that if the "supporter" does not list
any ciphers, then it supports anything. Such as:
"SSL"
supports
"SSL,SSL_DH_DSS_WITH_3DES_EDE_CBC_SHA"
genericMechSupportsMech
public static boolean genericMechSupportsMech(String supporter,
String supportee)
- This function return true if the generic mechanism is
equal and the first parameter's crypto_profile "supports"
the second's crypto profile. For example,
"Kerberos,DES_CBC_CRC,DES_CBC_MD5"
supports
"Kerberos,DES_CBC_MD5"
However, we assume that if the "supporter" does not list
any ciphers, then it supports anything. Such as:
"SSL"
supports
"SSL,SSL_DH_DSS_WITH_3DES_EDE_CBC_SHA"
main
public static final void main(String args[])
- Testing main program.
All Packages Class Hierarchy This Package Previous Next Index