Tabnine Logo
Class.getSigners
Code IndexAdd Tabnine to your IDE (free)

How to use
getSigners
method
in
java.lang.Class

Best Java code snippets using java.lang.Class.getSigners (Showing top 20 results out of 315)

origin: spring-projects/spring-loaded

public static Object[] callGetSigners(Class thiz)
{
  return thiz.getSigners();
}
origin: spockframework/spock

private static boolean isComingFromSignedJar(Class<?> type) {
 return type.getSigners() != null;
}
origin: org.easymock/easymock

private Enhancer createEnhancer(Class<?> toMock) {
  // Create the mock
  Enhancer enhancer = new Enhancer() {
    /**
     * Filter all private constructors but do not check that there are
     * some left
     */
    @SuppressWarnings("rawtypes")
    @Override
    protected void filterConstructors(Class sc, List constructors) {
      CollectionUtils.filter(constructors, new VisibilityPredicate(sc, true));
    }
  };
  enhancer.setSuperclass(toMock);
  // ///CLOVER:OFF (I don't know how to test it automatically yet)
  // See issue ID: 2994002
  if (toMock.getSigners() != null) {
    enhancer.setNamingPolicy(ALLOWS_MOCKING_CLASSES_IN_SIGNED_PACKAGES);
  }
  // ///CLOVER:ON
  return enhancer;
}
origin: btraceio/btrace

  write("protectionDomain", protDomain);
Object[] signers = clazz.getSigners();
if (signers != null && signers.length > 0) {
  write("signers", signers);
origin: google/j2objc

if (mockedType.getSigners() != null) {
  enhancer.setNamingPolicy(NAMING_POLICY_THAT_ALLOWS_IMPOSTERISATION_OF_CLASSES_IN_SIGNED_PACKAGES);
} else {
origin: org.powermock/powermock-api-mockito

if (mockedType.getSigners() != null) {
  enhancer.setNamingPolicy(NAMING_POLICY_THAT_ALLOWS_IMPOSTERISATION_OF_CLASSES_IN_SIGNED_PACKAGES);
} else {
origin: weld/core

  private static String getDefaultPackageReason(Class<?> clazz) {
    if (clazz.getPackage() == null) {
      return NULL;
    }
    if (clazz.getSigners() != null) {
      return SIGNED;
    }
    return null;
  }
}
origin: weld/core

  private static String getDefaultPackageReason(Class<?> clazz) {
    if (clazz.getPackage() == null) {
      return NULL;
    }
    if (clazz.getSigners() != null) {
      return SIGNED;
    }
    return null;
  }
}
origin: weld/core

  private static String getDefaultPackageReason(Class<?> clazz) {
    if (clazz.getPackage() == null) {
      return NULL;
    }
    if (clazz.getSigners() != null) {
      return SIGNED;
    }
    return null;
  }
}
origin: org.jboss.weld.se/weld-se

  private static String getDefaultPackageReason(Class<?> clazz) {
    if (clazz.getPackage() == null) {
      return NULL;
    }
    if (clazz.getSigners() != null) {
      return SIGNED;
    }
    return null;
  }
}
origin: org.jboss.weld.servlet/weld-servlet-shaded

  private static String getDefaultPackageReason(Class<?> clazz) {
    if (clazz.getPackage() == null) {
      return NULL;
    }
    if (clazz.getSigners() != null) {
      return SIGNED;
    }
    return null;
  }
}
origin: org.jboss.weld.se/weld-se-shaded

  private static String getDefaultPackageReason(Class<?> clazz) {
    if (clazz.getPackage() == null) {
      return NULL;
    }
    if (clazz.getSigners() != null) {
      return SIGNED;
    }
    return null;
  }
}
origin: org.apache.openwebbeans/openwebbeans-impl

private <T> String getSubClassName(Class<T> classToProxy)
{
  if (classToProxy.getSigners() != null)
  {
    return getSignedClassProxyName(classToProxy) + SUB_CLASS_NAME_SUFFIX;
  }
  return fixPreservedPackages(classToProxy.getName() + SUB_CLASS_NAME_SUFFIX);
}
origin: au.net.zeus.jgdms/jgdms-platform

Permission resolve(Class targetType) {
  // check signers at first
  if (PolicyUtils.matchSubset( targetCerts, targetType.getSigners())) {
    try {
       return PolicyUtils.instantiatePermission(targetType, name, actions);
    } catch (Exception ignore) {
      //TODO log warning?
    }
  }
  return null;
}
origin: org.jruby/jruby-complete

@JRubyMethod
public IRubyObject signers() {
  return Java.getInstance(getRuntime(), javaClass().getSigners());
}
origin: org.netbeans.api/org-jruby

@JRubyMethod
public IRubyObject signers() {
  return Java.getInstance(getRuntime(), javaClass().getSigners());
}

origin: org.jruby/jruby-core

@JRubyMethod
public IRubyObject signers() {
  return Java.getInstance(getRuntime(), javaClass().getSigners());
}
origin: mariofusco/lambdaj

private Class<?> createProxyClass(Class<?> mockedType, Class<?>...interfaces) {
  if (mockedType == Object.class) mockedType = ClassWithSuperclassToWorkAroundCglibBug.class;
  
  Enhancer enhancer = new ClassEnhancer();
  enhancer.setUseFactory(true);
  enhancer.setSuperclass(mockedType);
  enhancer.setInterfaces(interfaces);
  enhancer.setCallbackTypes(new Class[]{MethodInterceptor.class, NoOp.class});
  enhancer.setCallbackFilter(IGNORE_BRIDGE_METHODS);
  enhancer.setNamingPolicy(mockedType.getSigners() != null ? SIGNED_CLASSES_POLICY : DEFAULT_POLICY);
  
  return enhancer.createClass();
}
origin: arquillian/arquillian-graphene

private Class<?> createProxyClass(Class<?> mockedType, Class<?>...interfaces) {
  if (mockedType == Object.class) mockedType = ClassWithSuperclassToWorkAroundCglibBug.class;
  Enhancer enhancer = new ClassEnhancer();
  enhancer.setUseFactory(true);
  enhancer.setSuperclass(mockedType);
  enhancer.setInterfaces(interfaces);
  enhancer.setCallbackTypes(new Class[]{MethodInterceptor.class, NoOp.class});
  enhancer.setCallbackFilter(IGNORED_METHODS);
  enhancer.setNamingPolicy(mockedType.getSigners() != null ? SIGNED_CLASSES_POLICY : DEFAULT_POLICY);
  return enhancer.createClass();
}
origin: org.jboss.arquillian.graphene/graphene-webdriver-impl

private Class<?> createProxyClass(Class<?> mockedType, Class<?>...interfaces) {
  if (mockedType == Object.class) mockedType = ClassWithSuperclassToWorkAroundCglibBug.class;
  Enhancer enhancer = new ClassEnhancer();
  enhancer.setUseFactory(true);
  enhancer.setSuperclass(mockedType);
  enhancer.setInterfaces(interfaces);
  enhancer.setCallbackTypes(new Class[]{MethodInterceptor.class, NoOp.class});
  enhancer.setCallbackFilter(IGNORED_METHODS);
  enhancer.setNamingPolicy(mockedType.getSigners() != null ? SIGNED_CLASSES_POLICY : DEFAULT_POLICY);
  return enhancer.createClass();
}
java.langClassgetSigners

Javadoc

Returns null. (On Android, a ClassLoader can load classes from multiple dex files. All classes from any given dex file will have the same signers, but different dex files may have different signers. This does not fit well with the original ClassLoader-based model of getSigners.)

Popular methods of Class

  • getName
    Returns the name of the class represented by this Class. For a description of the format which is us
  • getSimpleName
  • getClassLoader
  • isAssignableFrom
    Determines if the class or interface represented by this Class object is either the same as, or is a
  • forName
    Returns the Class object associated with the class or interface with the given string name, using th
  • newInstance
    Returns a new instance of the class represented by this Class, created by invoking the default (that
  • getMethod
    Returns a Method object that reflects the specified public member method of the class or interface r
  • getResourceAsStream
  • getSuperclass
    Returns the Class representing the superclass of the entity (class, interface, primitive type or voi
  • getConstructor
  • cast
    Casts an object to the class or interface represented by this Class object.
  • isInstance
  • cast,
  • isInstance,
  • getCanonicalName,
  • getDeclaredField,
  • isArray,
  • getAnnotation,
  • getDeclaredFields,
  • getResource,
  • getDeclaredMethod,
  • getMethods

Popular in Java

  • Making http post requests using okhttp
  • scheduleAtFixedRate (Timer)
  • notifyDataSetChanged (ArrayAdapter)
  • getSharedPreferences (Context)
  • BorderLayout (java.awt)
    A border layout lays out a container, arranging and resizing its components to fit in five regions:
  • Socket (java.net)
    Provides a client-side TCP socket.
  • SecureRandom (java.security)
    This class generates cryptographically secure pseudo-random numbers. It is best to invoke SecureRand
  • Locale (java.util)
    Locale represents a language/country/variant combination. Locales are used to alter the presentatio
  • JFileChooser (javax.swing)
  • Loader (org.hibernate.loader)
    Abstract superclass of object loading (and querying) strategies. This class implements useful common
  • Best IntelliJ plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now