Enum 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: jakarta.resource.spi.security.PasswordCredential org.ietf.jgss.GSSCredential jakarta.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 jakarta.resource.spi.security.GenericCredentialenum instance representing org.ietf.jgss.GSSCredentiaenum instance representing jakarta.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 type with the specified name.static CredentialInterfaceEnum[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
PasswordCredential
enum instance representing jakarta.resource.spi.security.PasswordCredential -
GSSCredential
enum instance representing org.ietf.jgss.GSSCredentia -
GenericCredential
enum instance representing jakarta.resource.spi.security.GenericCredential
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
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 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: jakarta.resource.spi.security.PasswordCredential org.ietf.jgss.GSSCredential jakarta.resource.spi.security.GenericCredential
-
getFullQualifiedName
- Returns:
- fullQualifiedName
-
toString
- Overrides:
toStringin classEnum<CredentialInterfaceEnum>
-