Class PlatformGrantedAuthority

java.lang.Object
com.cloudimpl.outstack.spring.security.PlatformGrantedAuthority
All Implemented Interfaces:
java.io.Serializable, org.springframework.security.core.GrantedAuthority

public class PlatformGrantedAuthority
extends java.lang.Object
implements org.springframework.security.core.GrantedAuthority
Author:
nuwan
See Also:
Serialized Form
  • Constructor Summary

    Constructors
    Constructor Description
    PlatformGrantedAuthority​(java.util.Collection<PolicyStatement> denyPolicyStmts, java.util.Collection<PolicyStatement> allowPolicyStmts)  
  • Method Summary

    Modifier and Type Method Description
    java.util.Optional<java.util.List<PolicyStatement>> getAllowStatmentByResourceName​(java.lang.String resourceName)  
    java.lang.String getAuthority()  
    java.util.Optional<java.util.List<PolicyStatement>> getDenyStatmentByResourceName​(java.lang.String resourceName, java.lang.String domainOwner, java.lang.String domainContext)  

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • PlatformGrantedAuthority

      public PlatformGrantedAuthority​(java.util.Collection<PolicyStatement> denyPolicyStmts, java.util.Collection<PolicyStatement> allowPolicyStmts)
  • Method Details

    • getDenyStatmentByResourceName

      public java.util.Optional<java.util.List<PolicyStatement>> getDenyStatmentByResourceName​(java.lang.String resourceName, java.lang.String domainOwner, java.lang.String domainContext)
    • getAllowStatmentByResourceName

      public java.util.Optional<java.util.List<PolicyStatement>> getAllowStatmentByResourceName​(java.lang.String resourceName)
    • getAuthority

      public java.lang.String getAuthority()
      Specified by:
      getAuthority in interface org.springframework.security.core.GrantedAuthority