Class AccessUnrestricted

  • All Implemented Interfaces:

    public class AccessUnrestricted
    extends java.lang.Object
    implements AccessPolicy
    Unrestricted access policy.

    No certificates or other credentials are exchanged while systems interact under this policy. The policy is only allowed for services being provided by systems running in insecure mode.

    Note that access policy instances of this type can be shared by multiple services.

    Use the AccessPolicy.unrestricted() method to get an instance of this class.

    • Constructor Detail

      • AccessUnrestricted

        public AccessUnrestricted()
    • Method Detail

      • isAuthorized

        public boolean isAuthorized​(SystemIdentityDescription consumer,
                                    ArSystem provider,
                                    ServiceDescription service,
                                    java.lang.String token)
        Description copied from interface: AccessPolicy
        Determines whether or not the described system may consume the described service using the given access token, if any.
        Specified by:
        isAuthorized in interface AccessPolicy
        consumer - Description of system attempting to consume the service in question.
        provider - The system providing the consumed service.
        service - Description of service that the consumer attempts to consume.
        token - Access token presented by the consumer, if any.
        true only if consumer is permitted to consume service.