org.openliberty.xmltooling
Enum Konstantz.SecurityMechanism

java.lang.Object
  extended by java.lang.Enum<Konstantz.SecurityMechanism>
      extended by org.openliberty.xmltooling.Konstantz.SecurityMechanism
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<Konstantz.SecurityMechanism>
Enclosing class:
Konstantz

public static enum Konstantz.SecurityMechanism
extends java.lang.Enum<Konstantz.SecurityMechanism>

This object enumerates the supported and unsupported security mechanisms recognized by the ClientLib.


Enum Constant Summary
ID_WSF20_CLIENT_TLS_PEER_SAML2
          This is a security mechanism where the certificate used for the Client portion of the Mutual TLS is referenced in the KeyInfo element of the SubjectConfirmationData inside of the included SAMLV2 Assertion No message level signing Contains Signed HoK Assertion HoK refers to the key used for the Client side TLS
ID_WSF20_CLIENT_TLS_SAML2
          Signed message containing a SAMLV2 token that references the certificate used for signing.
ID_WSF20_NULL_BEARER
          Using only a bearer token that indicates an authenticated client and its identity
ID_WSF20_NULL_NULL
          No signing, no secure sockets, no token.
ID_WSF20_NULL_SAML2
          Signed message containing a SAMLV2 token that references the certificate used for signing.
ID_WSF20_TLS_BEARER
          Bearer token and using server side SSL/TLS
ID_WSF20_TLS_NULL
          Using only server side SSL/TLS
ID_WSF20_TLS_SAML2
          Signed message containing a SAMLV2 token that references the certificate used for signing.
 
Field Summary
(package private)  boolean supported
          Indicates whether this security mechanism is supported by the ClientLib
(package private)  java.lang.String uri
          This is the URI that represents the security mechanism
 
Method Summary
static Konstantz.SecurityMechanism findSecurityMechanismForURI(java.lang.String uri)
          Takes a uri and attempts to find a matching SecurityMechanism
 java.lang.String getUri()
           
static Konstantz.SecurityMechanism valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static Konstantz.SecurityMechanism[] values()
          Returns an array containing the constants of this enum type, in the order they're declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

ID_WSF20_NULL_NULL

public static final Konstantz.SecurityMechanism ID_WSF20_NULL_NULL
No signing, no secure sockets, no token. No security.


ID_WSF20_TLS_NULL

public static final Konstantz.SecurityMechanism ID_WSF20_TLS_NULL
Using only server side SSL/TLS


ID_WSF20_NULL_BEARER

public static final Konstantz.SecurityMechanism ID_WSF20_NULL_BEARER
Using only a bearer token that indicates an authenticated client and its identity


ID_WSF20_TLS_BEARER

public static final Konstantz.SecurityMechanism ID_WSF20_TLS_BEARER
Bearer token and using server side SSL/TLS


ID_WSF20_NULL_SAML2

public static final Konstantz.SecurityMechanism ID_WSF20_NULL_SAML2
Signed message containing a SAMLV2 token that references the certificate used for signing. The SubjectConfirmation element of the Subject of the Assertion, will contain an attribute named Method with a value of urn:oasis:names:tc:SAML:2.0:cm:holder-of-key.

ID_WSF20_TLS_SAML2

public static final Konstantz.SecurityMechanism ID_WSF20_TLS_SAML2
Signed message containing a SAMLV2 token that references the certificate used for signing. The SubjectConfirmation element of the Subject of the Assertion, will contain an attribute named Method with a value of urn:oasis:names:tc:SAML:2.0:cm:holder-of-key.

ID_WSF20_CLIENT_TLS_SAML2

public static final Konstantz.SecurityMechanism ID_WSF20_CLIENT_TLS_SAML2
Signed message containing a SAMLV2 token that references the certificate used for signing. The SubjectConfirmation element of the Subject of the Assertion, will contain an attribute named Method with a value of urn:oasis:names:tc:SAML:2.0:cm:holder-of-key.

ID_WSF20_CLIENT_TLS_PEER_SAML2

public static final Konstantz.SecurityMechanism ID_WSF20_CLIENT_TLS_PEER_SAML2
This is a security mechanism where the certificate used for the Client portion of the Mutual TLS is referenced in the KeyInfo element of the SubjectConfirmationData inside of the included SAMLV2 Assertion
  1. No message level signing
  2. Contains Signed HoK Assertion
  3. HoK refers to the key used for the Client side TLS

Field Detail

uri

java.lang.String uri
This is the URI that represents the security mechanism


supported

boolean supported
Indicates whether this security mechanism is supported by the ClientLib

Method Detail

values

public static final Konstantz.SecurityMechanism[] values()
Returns an array containing the constants of this enum type, in the order they're declared. This method may be used to iterate over the constants as follows:
for(Konstantz.SecurityMechanism c : Konstantz.SecurityMechanism.values())
        System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they're declared

valueOf

public static Konstantz.SecurityMechanism valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Parameters:
name - the name of the enum constant to be returned.
Returns:
the enum constant with the specified name
Throws:
java.lang.IllegalArgumentException - if this enum type has no constant with the specified name

findSecurityMechanismForURI

public static Konstantz.SecurityMechanism findSecurityMechanismForURI(java.lang.String uri)
Takes a uri and attempts to find a matching SecurityMechanism

Parameters:
uri -
Returns:

getUri

public java.lang.String getUri()