Enum Class CredentialInterfaceEnum

java.lang.Object
java.lang.Enum<CredentialInterfaceEnum>
org.jboss.jca.common.api.metadata.spec.CredentialInterfaceEnum
All Implemented Interfaces:
Serializable, Comparable<CredentialInterfaceEnum>, java.lang.constant.Constable

public enum CredentialInterfaceEnum extends Enum<CredentialInterfaceEnum>
Author:
Stefano Maestri The credential-interfaceType specifies the interface that the resource adapter implementation supports for the representation of the credentials. This element(s) that use this type, i.e. credential-interface, should be used by application server to find out the Credential interface it should use as part of the security contract. The possible values are: javax.resource.spi.security.PasswordCredential org.ietf.jgss.GSSCredential javax.resource.spi.security.GenericCredential
  • Enum Constant Details

    • PasswordCredential

      public static final CredentialInterfaceEnum PasswordCredential
      enum instance representing javax.resource.spi.security.PasswordCredential
    • GSSCredential

      public static final CredentialInterfaceEnum GSSCredential
      enum instance representing org.ietf.jgss.GSSCredentia
    • GenericCredential

      public static final CredentialInterfaceEnum GenericCredential
      enum instance representing javax.resource.spi.security.GenericCredential
  • Method Details

    • values

      public static CredentialInterfaceEnum[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static CredentialInterfaceEnum valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null
    • forName

      public static CredentialInterfaceEnum forName(String fullQualifiedName) throws IllegalArgumentException
      Conveninet method to get enum instance giving full qualified name
      Parameters:
      fullQualifiedName - the full qualified name of supported Credential interface
      Returns:
      the corresponding enum instance
      Throws:
      IllegalArgumentException - in case the fullQualifiedName isn't one of the supported interfaces: javax.resource.spi.security.PasswordCredential org.ietf.jgss.GSSCredential javax.resource.spi.security.GenericCredential
    • getFullQualifiedName

      public String getFullQualifiedName()
      Returns:
      fullQualifiedName
    • toString

      public String toString()
      Overrides:
      toString in class Enum<CredentialInterfaceEnum>