com.sun.identity.wss.security
Class SecurityMechanism

java.lang.Object
  extended bycom.sun.identity.wss.security.SecurityMechanism

public class SecurityMechanism
extends java.lang.Object

This class exposes the SecurityMechnisms of the web services security.


Field Summary
static SecurityMechanism LIB_CLIENT_TLS_SAML_BEARER_TOKEN
          Defines the security mechanism for the Liberty bearer token profile with SSL and client auth enabled.
static java.lang.String LIB_CLIENT_TLS_SAML_BEARER_TOKEN_URI
          URI for the liberty SAML Bearer token security profile with SSL and client auth enabled.
static SecurityMechanism LIB_CLIENT_TLS_SAML_TOKEN
          Defines the security mechanism for the Liberty SAML token profile with SSL and client auth enabled.
static java.lang.String LIB_CLIENT_TLS_SAML_TOKEN_URI
          URI for the liberty SAML token security profile with SSL and client auth enabled.
static SecurityMechanism LIB_CLIENT_TLS_X509_TOKEN
          Defines the security mechanism for the Liberty x509 token profile with SSL and client auth enabled.
static java.lang.String LIB_CLIENT_TLS_X509_TOKEN_URI
          URI for the liberty X509 token security profile with TLS and client auth enabled.
static SecurityMechanism LIB_NULL_SAML_BEARER_TOKEN
          Defines the security mechanism for the Liberty bearer token profile.
static java.lang.String LIB_NULL_SAML_BEARER_TOKEN_URI
          URI for the liberty SAML Bearer token security profile.
static SecurityMechanism LIB_NULL_SAML_TOKEN
          Defines the security mechanism for the Liberty SAML token profile.
static java.lang.String LIB_NULL_SAML_TOKEN_URI
          URI for the liberty SAML token security profile.
static SecurityMechanism LIB_NULL_X509_TOKEN
          Defines the security mechanism for the Liberty x509 token profile.
static java.lang.String LIB_NULL_X509_TOKEN_URI
          URI for the liberty X509 token security profile.
static SecurityMechanism LIB_TLS_SAML_BEARER_TOKEN
          Defines the security mechanism for the Liberty bearer token profile with SSL enabled.
static java.lang.String LIB_TLS_SAML_BEARER_TOKEN_URI
          URI for the liberty SAML Bearer token security profile with SSL enabled.
static SecurityMechanism LIB_TLS_SAML_TOKEN
          Defines the security mechanism for the Liberty SAML token profile with SSL enabled.
static java.lang.String LIB_TLS_SAML_TOKEN_URI
          URI for the liberty SAML token security profile with SSL.
static SecurityMechanism LIB_TLS_X509_TOKEN
          Defines the security mechanism for the Liberty x509 token profile with SSL enabled.
static java.lang.String LIB_TLS_X509_TOKEN_URI
          URI for the liberty X509 token security profile with TLS.
static SecurityMechanism LIBERTY_DS_SECURITY
          Defines the security mechanism for the Liberty token profiles.
static java.lang.String LIBERTY_DS_SECURITY_URI
          URI for all the liberty security profiles.
static SecurityMechanism WSS_CLIENT_TLS_SAML_HK
          Defines the security mechanism for the saml token holder of key with SSL and client auth enabled.
static java.lang.String WSS_CLIENT_TLS_SAML_HK_URI
          URI for the SAML Holder of Key security profile with TLS or SSL and client auth enabled.
static SecurityMechanism WSS_CLIENT_TLS_SAML_SV
          Defines the security mechanism for the saml token sender vouches with SSL and client auth enabled.
static java.lang.String WSS_CLIENT_TLS_SAML_SV_URI
          URI for the SAML Sender vouches security profile with TLS or SSL and client auth enabled.
static SecurityMechanism WSS_CLIENT_TLS_USERNAME_TOKEN
          Defines the security mechanism for the Username token profile with SSL and client auth enabled.
static java.lang.String WSS_CLIENT_TLS_USERNAME_TOKEN_URI
          URI for the username token security profile with TLS or SSL and client auth enabled.
static SecurityMechanism WSS_CLIENT_TLS_X509_TOKEN
          Defines the security mechanism for the X509 token profile with SSL and client auth enabled.
static java.lang.String WSS_CLIENT_TLS_X509_TOKEN_URI
          URI for the X509 token security profile with TLS or SSL and client auth enabled.
static SecurityMechanism WSS_NULL_SAML_HK
          Defines the security mechanism for the saml token holder of key.
static java.lang.String WSS_NULL_SAML_HK_URI
          URI for the SAML Holder of Key security profile.
static SecurityMechanism WSS_NULL_SAML_SV
          Defines the security mechanism for the saml token sender vouches.
static java.lang.String WSS_NULL_SAML_SV_URI
          URI for the SAML Sender vouches security profile.
static SecurityMechanism WSS_NULL_USERNAME_TOKEN
          Defines the security mechanism for the Username token profile.
static java.lang.String WSS_NULL_USERNAME_TOKEN_URI
          URI for the Username token security profile.
static SecurityMechanism WSS_NULL_X509_TOKEN
          Defines the security mechanism for the X509 token profile.
static java.lang.String WSS_NULL_X509_TOKEN_URI
          URI for the X509 token security profile.
static SecurityMechanism WSS_TLS_SAML_HK
          Defines the security mechanism for the saml token holder of key with SSL enabled.
static java.lang.String WSS_TLS_SAML_HK_URI
          URI for the SAML Holder of Key security profile with TLS or SSL enabled.
static SecurityMechanism WSS_TLS_SAML_SV
          Defines the security mechanism for the saml token sender vouches with SSL enabled.
static java.lang.String WSS_TLS_SAML_SV_URI
          URI for the SAML Sender vouches security profile with TLS or SSL enabled.
static SecurityMechanism WSS_TLS_USERNAME_TOKEN
          Defines the security mechanism for the Username token profile with SSL enabled.
static java.lang.String WSS_TLS_USERNAME_TOKEN_URI
          URI for the username token security profile with TLS or SSL enabled.
static SecurityMechanism WSS_TLS_X509_TOKEN
          Defines the security mechanism for the X509 token profile with SSL enabled.
static java.lang.String WSS_TLS_X509_TOKEN_URI
          URI for the X509 security profile with TLS or SSL enabled.
 
Constructor Summary
SecurityMechanism(java.lang.String name)
          Constructor
SecurityMechanism(java.lang.String name, boolean useTA)
          Constructor
 
Method Summary
static java.util.List getLibertySecurityMechanismURIs()
          Returns the list of liberty security mechanism URIs.
 java.lang.String getName()
          Returns the security mechanism name.
static SecurityMechanism getSecurityMechanism(java.lang.String uri)
          Returns the security mechanism for the corresponding security mechanism URI.
 java.lang.String getURI()
          Returns the URI of the security mechanism.
 boolean isTALookupRequired()
          Checks if the Trust Authority lookup is required for this security mechanism.
 boolean isTARegistrationRequired()
          Checks if the Trust Authrotiy registration is required for this security mechanism.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

WSS_NULL_SAML_HK_URI

public static final java.lang.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 java.lang.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 java.lang.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 java.lang.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 java.lang.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 java.lang.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 java.lang.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 java.lang.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 java.lang.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 java.lang.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 java.lang.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 java.lang.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

LIBERTY_DS_SECURITY_URI

public static final java.lang.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

LIB_NULL_X509_TOKEN_URI

public static final java.lang.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 java.lang.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 java.lang.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 java.lang.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 java.lang.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 java.lang.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 java.lang.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 java.lang.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 java.lang.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_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.


LIBERTY_DS_SECURITY

public static final SecurityMechanism LIBERTY_DS_SECURITY
Defines the security mechanism for the Liberty token 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.

Constructor Detail

SecurityMechanism

public SecurityMechanism(java.lang.String name)
Constructor

Parameters:
name - the security mechanism name.

SecurityMechanism

public SecurityMechanism(java.lang.String name,
                         boolean useTA)
Constructor

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 java.lang.String getName()
Returns the security mechanism name.

Returns:
the name of the security mechanism.

getURI

public java.lang.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(java.lang.String uri)
Returns the security mechanism for the corresponding security mechanism URI.

Returns:
the security mechanism object.

getLibertySecurityMechanismURIs

public static java.util.List getLibertySecurityMechanismURIs()
Returns the list of liberty security mechanism URIs.

Returns:
the list of liberty security mechanism URIs.


Copyright 2006 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms.