Class AccessPolicyProperties


  • public final class AccessPolicyProperties
    extends Object
    Application level properties for the access policy resource.
    • Constructor Detail

      • AccessPolicyProperties

        public AccessPolicyProperties()
    • Method Detail

      • role

        public AccessPolicyRole role()
        Get the role property: Defines the access level granted by this policy.
        Returns:
        the role value.
      • withRole

        public AccessPolicyProperties withRole​(AccessPolicyRole role)
        Set the role property: Defines the access level granted by this policy.
        Parameters:
        role - the role value to set.
        Returns:
        the AccessPolicyProperties object itself.
      • authentication

        public AuthenticationBase authentication()
        Get the authentication property: Authentication method to be used when validating client API access.
        Returns:
        the authentication value.
      • withAuthentication

        public AccessPolicyProperties withAuthentication​(AuthenticationBase authentication)
        Set the authentication property: Authentication method to be used when validating client API access.
        Parameters:
        authentication - the authentication value to set.
        Returns:
        the AccessPolicyProperties object itself.
      • validate

        public void validate()
        Validates the instance.
        Throws:
        IllegalArgumentException - thrown if the instance is not valid.