Class SecurityAuthorisationRequest

java.lang.Object
com.ebasetech.ufs.security.authorisation.SecurityAuthorisationRequest
All Implemented Interfaces:
java.io.Serializable

public class SecurityAuthorisationRequest
extends java.lang.Object
implements java.io.Serializable
This class represents a request for security authorisation. An instance of this class is passed to the isAuthorised() method of the configured Authorisation Manager which will answer true or false to indicate whether or not a given user is authorised. A security authorisation request consists of three parts:
- Type
- Name
- Function
e.g. Type=Accounts, Name=MyCorp, Function=View
See Also:
Serialized Form
  • Constructor Summary

    Constructors
    Constructor Description
    SecurityAuthorisationRequest​(java.lang.String type, java.lang.String name, java.lang.String function)
    SecurityAuthorisation constructor
  • Method Summary

    Modifier and Type Method Description
    java.lang.String getFunction()
    Returns the function part of the authorisation request
    java.lang.String getName()
    Returns the name part of the authorisation request
    java.lang.String getType()
    Returns the type part of the authorisation request

    Methods inherited from class java.lang.Object

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

    • SecurityAuthorisationRequest

      public SecurityAuthorisationRequest​(java.lang.String type, java.lang.String name, java.lang.String function)
      SecurityAuthorisation constructor
  • Method Details

    • getFunction

      public java.lang.String getFunction()
      Returns the function part of the authorisation request
    • getName

      public java.lang.String getName()
      Returns the name part of the authorisation request
    • getType

      public java.lang.String getType()
      Returns the type part of the authorisation request