Class SecurityMechanism


  • public class SecurityMechanism
    extends Object
    This class exposes the SecurityMechanisms used in the Web Services Security.
    • Field Detail

      • WSS_NULL_SAML_HK_URI

        public static final String WSS_NULL_SAML_HK_URI
        URI for the SAML Holder of Key security profile.
        See Also:
        Constant Field Values
      • WSS_TLS_SAML_HK_URI

        public static final String WSS_TLS_SAML_HK_URI
        URI for the SAML Holder of Key security profile with TLS or SSL enabled.
        See Also:
        Constant Field Values
      • WSS_CLIENT_TLS_SAML_HK_URI

        public static final String WSS_CLIENT_TLS_SAML_HK_URI
        URI for the SAML Holder of Key security profile with TLS or SSL and client auth enabled.
        See Also:
        Constant Field Values
      • WSS_NULL_SAML_SV_URI

        public static final String WSS_NULL_SAML_SV_URI
        URI for the SAML Sender vouches security profile.
        See Also:
        Constant Field Values
      • WSS_TLS_SAML_SV_URI

        public static final String WSS_TLS_SAML_SV_URI
        URI for the SAML Sender vouches security profile with TLS or SSL enabled.
        See Also:
        Constant Field Values
      • WSS_CLIENT_TLS_SAML_SV_URI

        public static final String WSS_CLIENT_TLS_SAML_SV_URI
        URI for the SAML Sender vouches security profile with TLS or SSL and client auth enabled.
        See Also:
        Constant Field Values
      • WSS_NULL_X509_TOKEN_URI

        public static final String WSS_NULL_X509_TOKEN_URI
        URI for the X509 token security profile.
        See Also:
        Constant Field Values
      • WSS_TLS_X509_TOKEN_URI

        public static final String WSS_TLS_X509_TOKEN_URI
        URI for the X509 security profile with TLS or SSL enabled.
        See Also:
        Constant Field Values
      • WSS_CLIENT_TLS_X509_TOKEN_URI

        public static final String WSS_CLIENT_TLS_X509_TOKEN_URI
        URI for the X509 token security profile with TLS or SSL and client auth enabled.
        See Also:
        Constant Field Values
      • WSS_NULL_USERNAME_TOKEN_URI

        public static final String WSS_NULL_USERNAME_TOKEN_URI
        URI for the Username token security profile.
        See Also:
        Constant Field Values
      • WSS_TLS_USERNAME_TOKEN_URI

        public static final String WSS_TLS_USERNAME_TOKEN_URI
        URI for the username token security profile with TLS or SSL enabled.
        See Also:
        Constant Field Values
      • WSS_CLIENT_TLS_USERNAME_TOKEN_URI

        public static final String WSS_CLIENT_TLS_USERNAME_TOKEN_URI
        URI for the username token security profile with TLS or SSL and client auth enabled.
        See Also:
        Constant Field Values
      • WSS_NULL_USERNAME_TOKEN_PLAIN_URI

        public static final String WSS_NULL_USERNAME_TOKEN_PLAIN_URI
        URI for the Username token security profile.
        See Also:
        Constant Field Values
      • WSS_TLS_USERNAME_TOKEN_PLAIN_URI

        public static final String WSS_TLS_USERNAME_TOKEN_PLAIN_URI
        URI for the username token security profile with TLS or SSL enabled.
        See Also:
        Constant Field Values
      • WSS_CLIENT_TLS_USERNAME_TOKEN_PLAIN_URI

        public static final String WSS_CLIENT_TLS_USERNAME_TOKEN_PLAIN_URI
        URI for the username token security profile with TLS or SSL and client auth enabled.
        See Also:
        Constant Field Values
      • LIBERTY_DS_SECURITY_URI

        public static final String LIBERTY_DS_SECURITY_URI
        URI for all the liberty security profiles. This URI is mainly for the webservices clients where the real security mechanims are found from the liberty discovery service.
        See Also:
        Constant Field Values
      • STS_SECURITY_URI

        public static final String STS_SECURITY_URI
        This URI is mainly for the webservices clients need to find the security token from the security token service.
        See Also:
        Constant Field Values
      • LIB_NULL_X509_TOKEN_URI

        public static final String LIB_NULL_X509_TOKEN_URI
        URI for the liberty X509 token security profile.
        See Also:
        Constant Field Values
      • LIB_NULL_SAML_BEARER_TOKEN_URI

        public static final String LIB_NULL_SAML_BEARER_TOKEN_URI
        URI for the liberty SAML Bearer token security profile.
        See Also:
        Constant Field Values
      • LIB_NULL_SAML_TOKEN_URI

        public static final String LIB_NULL_SAML_TOKEN_URI
        URI for the liberty SAML token security profile.
        See Also:
        Constant Field Values
      • LIB_TLS_X509_TOKEN_URI

        public static final String LIB_TLS_X509_TOKEN_URI
        URI for the liberty X509 token security profile with TLS.
        See Also:
        Constant Field Values
      • LIB_TLS_SAML_BEARER_TOKEN_URI

        public static final String LIB_TLS_SAML_BEARER_TOKEN_URI
        URI for the liberty SAML Bearer token security profile with SSL enabled.
        See Also:
        Constant Field Values
      • LIB_TLS_SAML_TOKEN_URI

        public static final String LIB_TLS_SAML_TOKEN_URI
        URI for the liberty SAML token security profile with SSL.
        See Also:
        Constant Field Values
      • LIB_CLIENT_TLS_X509_TOKEN_URI

        public static final String LIB_CLIENT_TLS_X509_TOKEN_URI
        URI for the liberty X509 token security profile with TLS and client auth enabled.
        See Also:
        Constant Field Values
      • LIB_CLIENT_TLS_SAML_BEARER_TOKEN_URI

        public static final String LIB_CLIENT_TLS_SAML_BEARER_TOKEN_URI
        URI for the liberty SAML Bearer token security profile with SSL and client auth enabled.
        See Also:
        Constant Field Values
      • LIB_CLIENT_TLS_SAML_TOKEN_URI

        public static final String LIB_CLIENT_TLS_SAML_TOKEN_URI
        URI for the liberty SAML token security profile with SSL and client auth enabled.
        See Also:
        Constant Field Values
      • WSS_NULL_SAML2_HK_URI

        public static final String WSS_NULL_SAML2_HK_URI
        URI for the SAML2 Holder of Key security profile.
        See Also:
        Constant Field Values
      • WSS_TLS_SAML2_HK_URI

        public static final String WSS_TLS_SAML2_HK_URI
        URI for the SAML2 Holder of Key security profile with TLS or SSL enabled.
        See Also:
        Constant Field Values
      • WSS_CLIENT_TLS_SAML2_HK_URI

        public static final String WSS_CLIENT_TLS_SAML2_HK_URI
        URI for the SAML2 Holder of Key security profile with TLS or SSL and client auth enabled.
        See Also:
        Constant Field Values
      • WSS_NULL_SAML2_SV_URI

        public static final String WSS_NULL_SAML2_SV_URI
        URI for the SAML2 Sender Vouches security profile.
        See Also:
        Constant Field Values
      • WSS_TLS_SAML2_SV_URI

        public static final String WSS_TLS_SAML2_SV_URI
        URI for the SAML2 Sender Vouches security profile with TLS or SSL enabled.
        See Also:
        Constant Field Values
      • WSS_CLIENT_TLS_SAML2_SV_URI

        public static final String WSS_CLIENT_TLS_SAML2_SV_URI
        URI for the SAML2 Sender Vouches security profile with TLS or SSL and client auth enabled.
        See Also:
        Constant Field Values
      • WSS_NULL_ANONYMOUS_URI

        public static final String WSS_NULL_ANONYMOUS_URI
        URI for the anonymous security profile.
        See Also:
        Constant Field Values
      • WSS_TLS_ANONYMOUS_URI

        public static final String WSS_TLS_ANONYMOUS_URI
        URI for the anonymous security profile with TLS or SSL enabled.
        See Also:
        Constant Field Values
      • WSS_CLIENT_TLS_ANONYMOUS_URI

        public static final String WSS_CLIENT_TLS_ANONYMOUS_URI
        URI for the anonymous security profile with TLS or SSL and client auth enabled.
        See Also:
        Constant Field Values
      • WSS_NULL_KERBEROS_TOKEN_URI

        public static final String WSS_NULL_KERBEROS_TOKEN_URI
        URI for the Kerberos token security profile.
        See Also:
        Constant Field Values
      • WSS_TLS_KERBEROS_TOKEN_URI

        public static final String WSS_TLS_KERBEROS_TOKEN_URI
        URI for the Kerberos security profile with TLS or SSL enabled.
        See Also:
        Constant Field Values
      • WSS_CLIENT_TLS_KERBEROS_TOKEN_URI

        public static final String WSS_CLIENT_TLS_KERBEROS_TOKEN_URI
        URI for the Kerberos token security profile with TLS or SSL and client auth enabled.
        See Also:
        Constant Field Values
      • WSS_CLIENT_TLS_SAML_HK

        public static final SecurityMechanism WSS_CLIENT_TLS_SAML_HK
        Defines the security mechanism for the saml token holder of key with SSL and client auth enabled.
      • WSS_TLS_SAML_HK

        public static final SecurityMechanism WSS_TLS_SAML_HK
        Defines the security mechanism for the saml token holder of key with SSL enabled.
      • WSS_NULL_SAML_HK

        public static final SecurityMechanism WSS_NULL_SAML_HK
        Defines the security mechanism for the saml token holder of key.
      • WSS_CLIENT_TLS_SAML_SV

        public static final SecurityMechanism WSS_CLIENT_TLS_SAML_SV
        Defines the security mechanism for the saml token sender vouches with SSL and client auth enabled.
      • WSS_TLS_SAML_SV

        public static final SecurityMechanism WSS_TLS_SAML_SV
        Defines the security mechanism for the saml token sender vouches with SSL enabled.
      • WSS_NULL_SAML_SV

        public static final SecurityMechanism WSS_NULL_SAML_SV
        Defines the security mechanism for the saml token sender vouches.
      • WSS_NULL_X509_TOKEN

        public static final SecurityMechanism WSS_NULL_X509_TOKEN
        Defines the security mechanism for the X509 token profile.
      • WSS_TLS_X509_TOKEN

        public static final SecurityMechanism WSS_TLS_X509_TOKEN
        Defines the security mechanism for the X509 token profile with SSL enabled.
      • WSS_CLIENT_TLS_X509_TOKEN

        public static final SecurityMechanism WSS_CLIENT_TLS_X509_TOKEN
        Defines the security mechanism for the X509 token profile with SSL and client auth enabled.
      • WSS_NULL_USERNAME_TOKEN

        public static final SecurityMechanism WSS_NULL_USERNAME_TOKEN
        Defines the security mechanism for the Username token profile.
      • WSS_TLS_USERNAME_TOKEN

        public static final SecurityMechanism WSS_TLS_USERNAME_TOKEN
        Defines the security mechanism for the Username token profile with SSL enabled.
      • WSS_CLIENT_TLS_USERNAME_TOKEN

        public static final SecurityMechanism WSS_CLIENT_TLS_USERNAME_TOKEN
        Defines the security mechanism for the Username token profile with SSL and client auth enabled.
      • WSS_NULL_USERNAME_TOKEN_PLAIN

        public static final SecurityMechanism WSS_NULL_USERNAME_TOKEN_PLAIN
        Defines the security mechanism for the Username token profile.
      • WSS_TLS_USERNAME_TOKEN_PLAIN

        public static final SecurityMechanism WSS_TLS_USERNAME_TOKEN_PLAIN
        Defines the security mechanism for the Username token profile with SSL enabled.
      • WSS_CLIENT_TLS_USERNAME_TOKEN_PLAIN

        public static final SecurityMechanism WSS_CLIENT_TLS_USERNAME_TOKEN_PLAIN
        Defines the security mechanism for the Username token profile with SSL and client auth enabled.
      • LIBERTY_DS_SECURITY

        public static final SecurityMechanism LIBERTY_DS_SECURITY
        Defines the security mechanism for the Liberty token profiles.
      • STS_SECURITY

        public static final SecurityMechanism STS_SECURITY
        Defines the security mechanism for the security token service profiles.
      • LIB_NULL_X509_TOKEN

        public static final SecurityMechanism LIB_NULL_X509_TOKEN
        Defines the security mechanism for the Liberty x509 token profile.
      • LIB_NULL_SAML_BEARER_TOKEN

        public static final SecurityMechanism LIB_NULL_SAML_BEARER_TOKEN
        Defines the security mechanism for the Liberty bearer token profile.
      • LIB_NULL_SAML_TOKEN

        public static final SecurityMechanism LIB_NULL_SAML_TOKEN
        Defines the security mechanism for the Liberty SAML token profile.
      • LIB_TLS_X509_TOKEN

        public static final SecurityMechanism LIB_TLS_X509_TOKEN
        Defines the security mechanism for the Liberty x509 token profile with SSL enabled.
      • LIB_TLS_SAML_BEARER_TOKEN

        public static final SecurityMechanism LIB_TLS_SAML_BEARER_TOKEN
        Defines the security mechanism for the Liberty bearer token profile with SSL enabled.
      • LIB_TLS_SAML_TOKEN

        public static final SecurityMechanism LIB_TLS_SAML_TOKEN
        Defines the security mechanism for the Liberty SAML token profile with SSL enabled.
      • LIB_CLIENT_TLS_X509_TOKEN

        public static final SecurityMechanism LIB_CLIENT_TLS_X509_TOKEN
        Defines the security mechanism for the Liberty x509 token profile with SSL and client auth enabled.
      • LIB_CLIENT_TLS_SAML_BEARER_TOKEN

        public static final SecurityMechanism LIB_CLIENT_TLS_SAML_BEARER_TOKEN
        Defines the security mechanism for the Liberty bearer token profile with SSL and client auth enabled.
      • LIB_CLIENT_TLS_SAML_TOKEN

        public static final SecurityMechanism LIB_CLIENT_TLS_SAML_TOKEN
        Defines the security mechanism for the Liberty SAML token profile with SSL and client auth enabled.
      • WSS_CLIENT_TLS_SAML2_HK

        public static final SecurityMechanism WSS_CLIENT_TLS_SAML2_HK
        Defines the security mechanism for the saml2 token holder of key with SSL and client auth enabled.
      • WSS_TLS_SAML2_HK

        public static final SecurityMechanism WSS_TLS_SAML2_HK
        Defines the security mechanism for the saml2 token holder of key with SSL enabled.
      • WSS_NULL_SAML2_HK

        public static final SecurityMechanism WSS_NULL_SAML2_HK
        Defines the security mechanism for the saml2 token holder of key.
      • WSS_CLIENT_TLS_SAML2_SV

        public static final SecurityMechanism WSS_CLIENT_TLS_SAML2_SV
        Defines the security mechanism for the saml2 token sender vouches with SSL and client auth enabled.
      • WSS_TLS_SAML2_SV

        public static final SecurityMechanism WSS_TLS_SAML2_SV
        Defines the security mechanism for the saml2 token sender vouches with SSL enabled.
      • WSS_NULL_SAML2_SV

        public static final SecurityMechanism WSS_NULL_SAML2_SV
        Defines the security mechanism for the saml2 token sender vouches.
      • WSS_CLIENT_TLS_ANONYMOUS

        public static final SecurityMechanism WSS_CLIENT_TLS_ANONYMOUS
        Defines the security mechanism for the anonymous token with SSL and client auth enabled.
      • WSS_TLS_ANONYMOUS

        public static final SecurityMechanism WSS_TLS_ANONYMOUS
        Defines the security mechanism for the anonymous token with SSL.
      • WSS_NULL_ANONYMOUS

        public static final SecurityMechanism WSS_NULL_ANONYMOUS
        Defines the security mechanism for the anonymous token.
      • WSS_NULL_KERBEROS_TOKEN

        public static final SecurityMechanism WSS_NULL_KERBEROS_TOKEN
        Defines the security mechanism for the Kerberos token profile.
      • WSS_TLS_KERBEROS_TOKEN

        public static final SecurityMechanism WSS_TLS_KERBEROS_TOKEN
        Defines the security mechanism for the Kerberos token profile with SSL enabled.
      • WSS_CLIENT_TLS_KERBEROS_TOKEN

        public static final SecurityMechanism WSS_CLIENT_TLS_KERBEROS_TOKEN
        Defines the security mechanism for the Kerberos token profile with SSL and client auth enabled.
    • Constructor Detail

      • SecurityMechanism

        public SecurityMechanism​(String name)
        Constructs SecurityMechanism.
        Parameters:
        name - the security mechanism name.
      • SecurityMechanism

        public SecurityMechanism​(String name,
                                 boolean useTA)
        Constructs SecurityMechanism.
        Parameters:
        name - the name of the security mechanism.
        useTA - the boolean variable to let enable for the trust authority look up or registration.
    • Method Detail

      • getName

        public String getName()
        Returns the security mechanism name.
        Returns:
        the name of the security mechanism.
      • getURI

        public String getURI()
        Returns the URI of the security mechanism.
        Returns:
        the name of the security mechanism.
      • isTARegistrationRequired

        public boolean isTARegistrationRequired()
        Checks if the Trust Authrotiy registration is required for this security mechanism.
        Returns:
        true if the trust authority registration is required.
      • isTALookupRequired

        public boolean isTALookupRequired()
        Checks if the Trust Authority lookup is required for this security mechanism.
        Returns:
        true if the trust authority lookup is required.
      • getSecurityMechanism

        public static SecurityMechanism getSecurityMechanism​(String uri)
        Returns the security mechanism for the corresponding security mechanism URI.
        Returns:
        the security mechanism object.
      • getLibertySecurityMechanismURIs

        public static List getLibertySecurityMechanismURIs()
        Returns the list of liberty security mechanism URIs.
        Returns:
        the list of liberty security mechanism URIs.
      • getAllWSCSecurityMechanisms

        public static List getAllWSCSecurityMechanisms()
        Returns all the list of SecurityMechanisms supported by the Web Services Client.
        Returns:
        the list of SecurityMechanisms supported by the Web Services Client.
      • getAllWSPSecurityMechanisms

        public static List getAllWSPSecurityMechanisms()
        Returns all the list of SecurityMechanisms supported by the Web Services Provider.
        Returns:
        the list of SecurityMechanisms supported by the Web Services Provider.