Package com.sun.enterprise.deployment
Class AuthMechanism
- java.lang.Object
-
- java.util.Observable
-
- org.glassfish.deployment.common.DynamicAttributesDescriptor
-
- org.glassfish.deployment.common.Descriptor
-
- com.sun.enterprise.deployment.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
-
-
Field Summary
-
Fields inherited from class org.glassfish.deployment.common.Descriptor
DESCRIPTION_CHANGED, DESCRIPTOR_CHANGED, docType, LARGE_ICON_CHANGED, NAME_CHANGED, SMALL_ICON_CHANGED
-
-
Constructor Summary
Constructors Constructor Description AuthMechanism()
Default constructor.AuthMechanism(String description, int authMechVal, String credInterface)
Initializes the data members.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static int
getAuthMechInt(String value)
String
getAuthMechType()
Get the auth-mech-typeint
getAuthMechVal()
Get the authentication mechanism value.String
getCredentialInterface()
Get the credential interface.String
getDescription()
Get the descriptionvoid
setAuthMechVal(int value)
Set the authentication mechanism value.void
setAuthMechVal(String value)
Set the authentication mechanism value.void
setCredentialInterface(String cred)
Set the credential interface.void
setDescription(String description)
Sets the description-
Methods inherited from class org.glassfish.deployment.common.Descriptor
addDescriptorExtension, addPrefixMapping, createUniqueFilenameAmongst, createUniqueNameAmongst, createUniqueNameAmongstNamedDescriptors, fillDocType, getDeploymentExtensions, getDescriptorExtension, getDescriptorExtensions, 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 org.glassfish.deployment.common.DynamicAttributesDescriptor
addExtraAttribute, getExtraAttribute, getExtraAttributes, removeExtraAttribute, toString
-
Methods inherited from class java.util.Observable
addObserver, clearChanged, countObservers, deleteObserver, deleteObservers, hasChanged, notifyObservers, notifyObservers, setChanged
-
-
-
-
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.
-
getDescription
public String getDescription()
Get the description- Overrides:
getDescription
in classDescriptor
- Returns:
- description.
-
setDescription
public void setDescription(String description)
Sets the description- Overrides:
setDescription
in classDescriptor
- 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.
-
-