Enum 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: jakarta.resource.spi.security.PasswordCredential org.ietf.jgss.GSSCredential jakarta.resource.spi.security.GenericCredential
    • Enum Constant Detail

      • PasswordCredential

        public static final CredentialInterfaceEnum PasswordCredential
        enum instance representing jakarta.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 jakarta.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: jakarta.resource.spi.security.PasswordCredential org.ietf.jgss.GSSCredential jakarta.resource.spi.security.GenericCredential
      • getFullQualifiedName

        public String getFullQualifiedName()
        Returns:
        fullQualifiedName