|
Oracle Fusion Middleware Java API Reference for Oracle Platform Security Services 11g Release 1 (11.1.1) E14650-06 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface AttributeService
Attribute service provides a generic service used to store and retrieve security attributes.
Attribute keys will be used to perform operations to attributes, and will be unique within a JVM in attribute service.
Each key can be associated with at most one attribute.
Methods are protected by AttributeAccessPermission.
Methods are thread-safe.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface oracle.security.jps.service.JpsPersistable |
|---|
JpsPersistable.Mode |
| Method Summary | |
|---|---|
java.lang.Object |
getAttribute(java.lang.String key)Returns the attribute associated with the specified key. |
void |
removeAttribute(java.lang.String key)Removes the attribute object associated with the key. |
void |
setAttribute(java.lang.String key, java.lang.Object attribute)Sets the attribute given the specified key. |
| Methods inherited from interface oracle.security.jps.service.ServiceInstance |
|---|
accept, getName, getServiceProvider |
| Methods inherited from interface oracle.security.jps.service.JpsPersistable |
|---|
persist, refresh |
| Method Detail |
|---|
void setAttribute(java.lang.String key,
java.lang.Object attribute)
throws AttributeServiceException,
java.security.AccessControlException
If the attribute passed in is null, the effect is the same as calling AttributeService.removeAttribute(String key).
If the attribute doesn't exists, it is added. Otherwise, the old attribute is updated.
oracle.security.jps.service.attribute.AttributeAccessPermission is required.
key - the key whose associated attribute is to be added or updatedattribute - the attribute to be associated with the specified keyAttributeServiceExceptionjava.security.AccessControlException - thrown if a requested access to attribute was denied
java.lang.Object getAttribute(java.lang.String key)
throws AttributeServiceException,
java.security.AccessControlException
If the attribute doesn't exists, return null.
oracle.security.jps.service.attribute.AttributeAccessPermission is required.
key - the key whose associated attribute is to be returnednull if the attribute doesn't existsAttributeServiceExceptionjava.security.AccessControlException - thrown if a requested access to attribute was denied
void removeAttribute(java.lang.String key)
throws AttributeServiceException,
java.security.AccessControlException
If the attribute doesn't exists, nothing happens.
oracle.security.jps.service.attribute.AttributeAccessPermission is required.
key - the key whose associated attribute is to be removedAttributeServiceExceptionjava.security.AccessControlException - thrown if a requested access to attribute was denied
|
Oracle Fusion Middleware Java API Reference for Oracle Platform Security Services 11g Release 1 (11.1.1) E14650-06 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||