Class FieldSecurityEnforcer.PiiAccess
java.lang.Object
com.gigaspaces.internal.server.space.security.FieldSecurityEnforcer.PiiAccess
- Enclosing class:
FieldSecurityEnforcer
The PII privileges of a specific user, with per type caching of the denied properties.
- Since:
- 18.0.1
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionaccessDenied(SpaceAuthority.SpacePrivilege privilege, ITypeDesc typeDesc, int index) accessDenied(SpaceAuthority.SpacePrivilege privilege, String typeName, String propertyName) voidassertPathsAllowed(ITypeDesc typeDesc, SpaceAuthority.SpacePrivilege privilege, Iterable<String> paths) Validates the specified property paths (e.g.voidassertQueryAllowed(ITypeDesc typeDesc, ITemplatePacket template) voidassertWriteAllowed(ITypeDesc typeDesc, IEntryPacket packet) int[]deniedIndexes(ITypeDesc typeDesc, SpaceAuthority.SpacePrivilege privilege) deniedProperties(ITypeDesc typeDesc, SpaceAuthority.SpacePrivilege privilege) booleanisFull()voidmaskResult(IEntryPacket packet, Function<String, ITypeDesc> typeDescLookup) Omits (nullifies) the values of PII properties the user lacks read privilege for.voidmaskResults(Object result, Function<String, ITypeDesc> typeDescLookup) Omits the PII properties the user lacks read privilege for from the entries held by an operation result: an entry packet, anAnswerPacket, aWriteEntryResult(previous entry on update), aWriteEntriesResultor an array of those.maskServerEntry(ServerEntry entry, ITypeDesc typeDesc)
-
Field Details
-
FULL
-
-
Method Details
-
isFull
public boolean isFull() -
deniedIndexes
- Returns:
- positions of the PII fixed properties of the type the user lacks the specified privilege for.
-
deniedProperties
- Returns:
- names of the PII properties of the type the user lacks the specified privilege for.
-
assertWriteAllowed
-
assertQueryAllowed
-
assertPathsAllowed
public void assertPathsAllowed(ITypeDesc typeDesc, SpaceAuthority.SpacePrivilege privilege, Iterable<String> paths) Validates the specified property paths (e.g. projections or aggregation paths) do not access denied PII properties. -
maskResult
Omits (nullifies) the values of PII properties the user lacks read privilege for.- Parameters:
typeDescLookup- resolves the type descriptor if the packet does not hold one.
-
maskResults
Omits the PII properties the user lacks read privilege for from the entries held by an operation result: an entry packet, anAnswerPacket, aWriteEntryResult(previous entry on update), aWriteEntriesResultor an array of those. -
maskServerEntry
- Returns:
- a read-only view of the entry which omits (returns null for) the PII properties the user lacks read privilege for, or the entry itself if there are none.
-
accessDenied
public AccessDeniedException accessDenied(SpaceAuthority.SpacePrivilege privilege, ITypeDesc typeDesc, int index) -
accessDenied
public AccessDeniedException accessDenied(SpaceAuthority.SpacePrivilege privilege, String typeName, String propertyName)
-