com.sun.enterprise.deployment
Class AuthMechanism

java.lang.Object
  extended by java.util.Observable
      extended by com.sun.enterprise.deployment.DynamicAttributesDescriptor
          extended by com.sun.enterprise.deployment.Descriptor
              extended by com.sun.enterprise.deployment.AuthMechanism
All Implemented Interfaces:
java.io.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

Field Summary
 
Fields inherited from class com.sun.enterprise.deployment.Descriptor
DESCRIPTION_CHANGED, DESCRIPTOR_CHANGED, docType, LARGE_ICON_CHANGED, NAME_CHANGED, SMALL_ICON_CHANGED
 
Constructor Summary
AuthMechanism()
          Default constructor.
AuthMechanism(java.lang.String description, int authMechVal, java.lang.String credInterface)
          Initializes the data members.
 
Method Summary
static int getAuthMechInt(java.lang.String value)
           
 java.lang.String getAuthMechType()
          Get the auth-mech-type
 int getAuthMechVal()
          Get the authentication mechanism value.
 java.lang.String getCredentialInterface()
          Get the credential interface.
 java.lang.String getDescription()
          Get the description
 void setAuthMechVal(int value)
          Set the authentication mechanism value.
 void setAuthMechVal(java.lang.String value)
          Set the authentication mechanism value.
 void setCredentialInterface(java.lang.String cred)
          Set the credential interface.
 void setDescription(java.lang.String description)
          Sets the description
 
Methods inherited from class com.sun.enterprise.deployment.Descriptor
addDeploymentExtension, addPrefixMapping, createUniqueFilenameAmongst, createUniqueNameAmongst, createUniqueNameAmongstNamedDescriptors, fillDocType, getDeploymentExtensions, getDisplayName, getDocType, getLargeIconUri, getLocalizedDescription, getLocalizedDescriptions, getLocalizedDisplayName, getLocalizedDisplayNames, getLocalizedLargeIconUri, getLocalizedLargeIconUris, getLocalizedSmallIconUri, getLocalizedSmallIconUris, getName, getPrefixMapping, getSmallIconUri, isBoundsChecking, print, setBoundsChecking, setDisplayName, setLargeIconUri, setLocalizedDescription, setLocalizedDisplayName, setLocalizedLargeIconUri, setLocalizedSmallIconUri, setName, setSmallIconUri, visit
 
Methods inherited from class com.sun.enterprise.deployment.DynamicAttributesDescriptor
addExtraAttribute, getExtraAttribute, getExtraAttributes, removeExtraAttribute, toString
 
Methods inherited from class java.util.Observable
addObserver, clearChanged, countObservers, deleteObserver, deleteObservers, hasChanged, notifyObservers, notifyObservers, setChanged
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

AuthMechanism

public AuthMechanism()
Default constructor.


AuthMechanism

public AuthMechanism(java.lang.String description,
                     int authMechVal,
                     java.lang.String credInterface)
Initializes the data members.

Parameters:
description - description
authMechVal - authentication mechanism type.
credInterface - credential interface type.
Method Detail

setCredentialInterface

public void setCredentialInterface(java.lang.String cred)
Set the credential interface.

Parameters:
cred - the interface.

getCredentialInterface

public java.lang.String getCredentialInterface()
Get the credential interface.

Returns:
credInterface the interface.

getDescription

public java.lang.String getDescription()
Get the description

Overrides:
getDescription in class Descriptor
Returns:
description.

setDescription

public void setDescription(java.lang.String description)
Sets the description

Overrides:
setDescription in class Descriptor
Parameters:
description. -

getAuthMechType

public java.lang.String getAuthMechType()
Get the auth-mech-type

Returns:
authMechVal the authentication mechanism type

getAuthMechInt

public static int getAuthMechInt(java.lang.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(java.lang.String value)
Set the authentication mechanism value.



Copyright © 2012 GlassFish Community. All Rights Reserved.