Class SecurityDescriptor


  • public final class SecurityDescriptor
    extends java.lang.Object
    Names an access policy that Arrowhead services can be configured to use.
    • Field Detail

      • CERTIFICATE

        public static final SecurityDescriptor CERTIFICATE
        Certificate access policy, with or without white-listing.

        A consuming system is trusted only if it can (1) present a certificate issued by the same cloud certificate as a provider, as well as (2) the system name of that certificate is white-listed, if required, by the service.

      • NOT_SECURE

        public static final SecurityDescriptor NOT_SECURE
        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.

      • TOKEN

        public static final SecurityDescriptor TOKEN
        Token access policy.

        A consuming system is trusted only if it can (1) present a certificate issued by the same master certificate as a provider, as well as (2) present a token originating from a designated authorization system.

    • Method Detail

      • getOrCreate

        public static SecurityDescriptor getOrCreate​(java.lang.String name)
        Either acquires a cached security descriptor matching the given name, or creates a new descriptor.
        Parameters:
        name - Desired security descriptor name.
        Returns:
        New or existing security descriptor.
      • isSecure

        public boolean isSecure()
        Returns:
        true only if this descriptor is not NOT_SECURE.
      • equals

        public boolean equals​(java.lang.Object other)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object