Package com.io7m.idstore.server.security

# Class IdSecPolicyDefault

java.lang.Object
com.io7m.idstore.server.security.IdSecPolicyDefault

All Implemented Interfaces:
  `IdSecPolicyType`

public final class IdSecPolicyDefault extends Object implements IdSecPolicyType
The default security policy.

- ## Method Summary

  Modifier and Type
  Method
  Description
  `IdSecPolicyResultType`
  `check(IdSecActionType action)`
  Check that a user is allowed to perform an action by the current policy.
  `static IdSecPolicyType`
  `get()`

  ### Methods inherited from class java.lang.Object

  `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- ## Method Details

  - ### get

    public static IdSecPolicyType get()
    Returns:
      A reference to this policy

  - ### check

    public IdSecPolicyResultType check(IdSecActionType action)
    Description copied from interface: `IdSecPolicyType`
    Check that a user is allowed to perform an action by the current policy.
    Specified by:
      `check` in interface `IdSecPolicyType`
    Parameters:
      `action` - The action
    Returns:
      A value indicating if the action is permitted