org.jboss.jca.common.api.metadata.ra
Enum CredentialInterfaceEnum

java.lang.Object
  extended by java.lang.Enum<CredentialInterfaceEnum>
      extended by org.jboss.jca.common.api.metadata.ra.CredentialInterfaceEnum
All Implemented Interfaces:
Serializable, Comparable<CredentialInterfaceEnum>

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 Summary
GenericCredential
          enum instance representing javax.resource.spi.security.GenericCredential
GSSCredential
          enum instance representing org.ietf.jgss.GSSCredentia
PasswordCredential
          enum instance representing javax.resource.spi.security.PasswordCredential
 
Method Summary
static CredentialInterfaceEnum forName(String fullQualifiedName)
          Conveninet method to get enum instance giving full qualified name
 String getFullQualifiedName()
           
static CredentialInterfaceEnum valueOf(String name)
          Returns the enum constant of this type with the specified name.
static CredentialInterfaceEnum[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

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 Detail

values

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

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

valueOf

public static CredentialInterfaceEnum valueOf(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:
IllegalArgumentException - if this enum type 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


Copyright © 2008 Red Hat Middleware LLC (http://www.jboss.com/)