Class AuthMechanism

  • All Implemented Interfaces:
    Serializable

    public class AuthMechanism
    extends Descriptor
    This class encapsulates the xml tags: description, auth-mech-type and credential-interface in the connector specification.
    Author:
    Sheetal Vartak
    See Also:
    Serialized Form
    • Constructor Detail

      • AuthMechanism

        public AuthMechanism()
        Default constructor.
      • AuthMechanism

        public AuthMechanism​(String description,
                             int authMechVal,
                             String credInterface)
        Initializes the data members.
        Parameters:
        description - description
        authMechVal - authentication mechanism type.
        credInterface - credential interface type.
    • Method Detail

      • setCredentialInterface

        public void setCredentialInterface​(String cred)
        Set the credential interface.
        Parameters:
        cred - the interface.
      • getCredentialInterface

        public String getCredentialInterface()
        Get the credential interface.
        Returns:
        credInterface the interface.
      • setDescription

        public void setDescription​(String description)
        Sets the description
        Overrides:
        setDescription in class Descriptor
        Parameters:
        description - .
      • getAuthMechType

        public String getAuthMechType()
        Get the auth-mech-type
        Returns:
        authMechVal the authentication mechanism type
      • getAuthMechInt

        public static int getAuthMechInt​(String value)
      • getAuthMechVal

        public int getAuthMechVal()
        Get the authentication mechanism value.
      • setAuthMechVal

        public void setAuthMechVal​(int value)
        Set the authentication mechanism value.
      • setAuthMechVal

        public void setAuthMechVal​(String value)
        Set the authentication mechanism value.