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
- 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
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionenum instance representing javax.resource.spi.security.GenericCredentialenum instance representing org.ietf.jgss.GSSCredentiaenum instance representing javax.resource.spi.security.PasswordCredential -
Method Summary
Modifier and TypeMethodDescriptionstatic CredentialInterfaceEnumConveninet method to get enum instance giving full qualified nametoString()static CredentialInterfaceEnumReturns the enum constant of this class with the specified name.static CredentialInterfaceEnum[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
PasswordCredential
enum instance representing javax.resource.spi.security.PasswordCredential -
GSSCredential
enum instance representing org.ietf.jgss.GSSCredentia -
GenericCredential
enum instance representing javax.resource.spi.security.GenericCredential
-
-
Method Details
-
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
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 nameNullPointerException- 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
- Returns:
- fullQualifiedName
-
toString
- Overrides:
toStringin classEnum<CredentialInterfaceEnum>
-