com.sun.enterprise.deployment.runtime.common
Class SecurityRoleMapping
java.lang.Object
java.util.Observable
com.sun.enterprise.deployment.DynamicAttributesDescriptor
com.sun.enterprise.deployment.Descriptor
com.sun.enterprise.deployment.runtime.RuntimeDescriptor
com.sun.enterprise.deployment.runtime.common.SecurityRoleMapping
- All Implemented Interfaces:
- java.io.Serializable
public class SecurityRoleMapping
- extends RuntimeDescriptor
This is the in memory representation of the security-role-mapping
information. Note that we are keeping just the literal Strings
in this object. The implementation of Principal is not instantiated
here. This is because 1) the dol should avoid loading any classes
as the classloaders used for deployment and runtime can be different.
2) verifier uses this information and it has not access to the rolemaper
on the server.
- Author:
- Jerome Dochez
- See Also:
- Serialized Form
| Methods inherited from class com.sun.enterprise.deployment.runtime.RuntimeDescriptor |
addPropertyChangeListener, addPropertyChangeListener, addValue, getAttributeValue, getAttributeValue, getAttributeValue, getValue, getValue, getValues, removePropertyChangeListener, removePropertyChangeListener, removeValue, removeValue, setAttributeValue, setAttributeValue, setAttributeValue, setValue, setValue, setValues, size |
| Methods inherited from class com.sun.enterprise.deployment.Descriptor |
addDeploymentExtension, addPrefixMapping, createUniqueFilenameAmongst, createUniqueNameAmongst, createUniqueNameAmongstNamedDescriptors, fillDocType, getDeploymentExtensions, getDescription, getDisplayName, getDocType, getLargeIconUri, getLocalizedDescription, getLocalizedDescriptions, getLocalizedDisplayName, getLocalizedDisplayNames, getLocalizedLargeIconUri, getLocalizedLargeIconUris, getLocalizedSmallIconUri, getLocalizedSmallIconUris, getName, getPrefixMapping, getSmallIconUri, isBoundsChecking, print, setBoundsChecking, setDescription, setDisplayName, setLargeIconUri, setLocalizedDescription, setLocalizedDisplayName, setLocalizedLargeIconUri, setLocalizedSmallIconUri, setName, setSmallIconUri, visit |
| 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 |
SecurityRoleMapping
public SecurityRoleMapping()
getRoleName
public java.lang.String getRoleName()
setRoleName
public void setRoleName(java.lang.String name)
getPrincipalNames
public java.util.List<PrincipalNameDescriptor> getPrincipalNames()
addPrincipalName
public void addPrincipalName(PrincipalNameDescriptor p)
getGroupNames
public java.util.List<java.lang.String> getGroupNames()
addGroupName
public void addGroupName(java.lang.String g)
getPrincipalName
public java.lang.String[] getPrincipalName()
- Deprecated. This method needs to be removed once the custom principal is fully
supported. We keep it for now for backward compatiblity in API. Note
that this method only returns the name of the principals, not their
class-names. Use with caution!
Copyright © 2012 GlassFish Community. All Rights Reserved.