Class SingleProtectionDomainFactory

    • Constructor Summary

      Constructors 
      Constructor Description
      SingleProtectionDomainFactory​(java.security.ProtectionDomain protectionDomain)
      Create a factory.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.security.ProtectionDomain getProtectionDomain​(java.lang.ClassLoader classloader)
      Returns the wrapped protection domain.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • SingleProtectionDomainFactory

        public SingleProtectionDomainFactory​(java.security.ProtectionDomain protectionDomain)
        Create a factory.
        Parameters:
        protectionDomain - the protection domain which will be returned for all classloaders
    • Method Detail

      • getProtectionDomain

        public java.security.ProtectionDomain getProtectionDomain​(java.lang.ClassLoader classloader)
        Returns the wrapped protection domain.
        Specified by:
        getProtectionDomain in interface ProtectionDomainFactory
        Parameters:
        classloader - the classloader
        Returns:
        the protection domain to be used by the classloader