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.Map<java.lang.String,PolicyStatement> denyPolicyStmts, java.util.Map<java.lang.String,PolicyStatement> allowPolicyStmts) -
Method Summary
Modifier and Type Method Description java.util.Optional<PolicyStatement>getAllowStatmentByResourceName(java.lang.String resourceName)java.lang.StringgetAuthority()java.util.Optional<PolicyStatement>getDenyStatmentByResourceName(java.lang.String resourceName)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.Map<java.lang.String,PolicyStatement> denyPolicyStmts, java.util.Map<java.lang.String,PolicyStatement> allowPolicyStmts)
-
-
Method Details
-
getDenyStatmentByResourceName
public java.util.Optional<PolicyStatement> getDenyStatmentByResourceName(java.lang.String resourceName) -
getAllowStatmentByResourceName
public java.util.Optional<PolicyStatement> getAllowStatmentByResourceName(java.lang.String resourceName) -
getAuthority
public java.lang.String getAuthority()- Specified by:
getAuthorityin interfaceorg.springframework.security.core.GrantedAuthority
-