java.security.AccessControlContext.equals()方法的使用及代码示例

x33g5p2x  于11个月前 转载在 其他  
字(7.4k)|赞(0)|评价(0)|浏览(38)

本文整理了Java中java.security.AccessControlContext.equals()方法的一些代码示例,展示了AccessControlContext.equals()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。AccessControlContext.equals()方法的具体详情如下:
包路径:java.security.AccessControlContext
类名称:AccessControlContext
方法名:equals

AccessControlContext.equals介绍

[英]Checks two AccessControlContext objects for equality. Checks that obj is an AccessControlContext and has the same set of ProtectionDomains as this context.
[中]检查两个AccessControlContext对象是否相等。检查obj是否为AccessControlContext,并且具有与此上下文相同的一组ProtectionDomains。

代码示例

代码示例来源:origin: wildfly/wildfly

@SuppressWarnings("checkstyle:equalshashcode")
public boolean equals(final PrivilegedSaslClientFactory other) {
  return super.equals(other) && context.equals(other.context);
}

代码示例来源:origin: au.net.zeus.jgdms/jgdms-platform

@Override
public boolean equals(Object o){
  if (!(o instanceof ComparableRunnableImpl)) return false;
  if  (!runnable.equals(((ComparableRunnableImpl) o).runnable)) return false;
  return context.equals(((ComparableRunnableImpl) o).context);
}

代码示例来源:origin: au.net.zeus.jgdms/jgdms-platform

@Override
public boolean equals(Object o){
  if (!(o instanceof ComparableCallableImpl)) return false;
  if  (!c.equals(((ComparableCallableImpl) o).c)) return false;
  return context.equals(((ComparableCallableImpl) o).context);
}

代码示例来源:origin: com.fitbur.external/external-bytebuddy

@Override
public boolean equals(Object other) {
  if (this == other) return true;
  if (other == null || getClass() != other.getClass()) return false;
  InjectionDispatcher that = (InjectionDispatcher) other;
  return !(protectionDomain != null ? !protectionDomain.equals(that.protectionDomain) : that.protectionDomain != null)
      && accessControlContext.equals(that.accessControlContext)
      && forbidExisting == that.forbidExisting
      && packageDefinitionStrategy.equals(that.packageDefinitionStrategy);
}

代码示例来源:origin: com.fitbur.external/external-bytebuddy

@Override
public boolean equals(Object other) {
  if (this == other) return true;
  if (other == null || getClass() != other.getClass()) return false;
  UsingReflection that = (UsingReflection) other;
  return accessControlContext.equals(that.accessControlContext)
      && classLoader.equals(that.classLoader)
      && forbidExisting == that.forbidExisting
      && packageDefinitionStrategy.equals(that.packageDefinitionStrategy)
      && !(protectionDomain != null ? !protectionDomain.equals(that.protectionDomain) : that.protectionDomain != null);
}

代码示例来源:origin: com.fitbur.external/external-bytebuddy

@Override
public boolean equals(Object other) {
  if (this == other) return true;
  if (other == null || getClass() != other.getClass()) return false;
  WrappingDispatcher that = (WrappingDispatcher) other;
  return childFirst == that.childFirst
      && forbidExisting == that.forbidExisting
      && !(protectionDomain != null ? !protectionDomain.equals(that.protectionDomain) : that.protectionDomain != null)
      && persistenceHandler == that.persistenceHandler
      && accessControlContext.equals(that.accessControlContext)
      && packageDefinitionStrategy.equals(that.packageDefinitionStrategy);
}

代码示例来源:origin: com.fitbur.external/external-bytebuddy

@Override
public boolean equals(Object other) {
  if (this == other) return true;
  if (other == null || getClass() != other.getClass()) return false;
  BootstrapClassLoaderCapableInjectorFactory that = (BootstrapClassLoaderCapableInjectorFactory) other;
  return bootstrapInjectionStrategy.equals(that.bootstrapInjectionStrategy)
      && !(classLoader != null ? !classLoader.equals(that.classLoader) : that.classLoader != null)
      && !(protectionDomain != null ? !protectionDomain.equals(that.protectionDomain) : that.protectionDomain != null)
      && accessControlContext.equals(that.accessControlContext);
}

代码示例来源:origin: com.fitbur.external/external-bytebuddy

@Override
public boolean equals(Object other) {
  if (this == other) return true;
  if (other == null || getClass() != other.getClass()) return false;
  ClassLoaderCreationAction that = (ClassLoaderCreationAction) other;
  return childFirst == that.childFirst
      && parent.equals(that.parent)
      && typeDefinitions.equals(that.typeDefinitions)
      && !(protectionDomain != null ? !protectionDomain.equals(that.protectionDomain) : that.protectionDomain != null)
      && accessControlContext.equals(that.accessControlContext)
      && persistenceHandler == that.persistenceHandler
      && packageDefinitionStrategy.equals(that.packageDefinitionStrategy);
}

代码示例来源:origin: com.fitbur.external/external-bytebuddy

@Override
public boolean equals(Object other) {
  if (this == other) return true;
  if (other == null || getClass() != other.getClass()) return false;
  if (!super.equals(other)) return false;
  ForDelegatingClassLoader that = (ForDelegatingClassLoader) other;
  return accessControlContext.equals(that.accessControlContext);
}

代码示例来源:origin: org.wildfly.security/wildfly-elytron

@SuppressWarnings("checkstyle:equalshashcode")
public boolean equals(final PrivilegedSaslClientFactory other) {
  return super.equals(other) && context.equals(other.context);
}

代码示例来源:origin: org.wildfly.security/wildfly-elytron-sasl

@SuppressWarnings("checkstyle:equalshashcode")
public boolean equals(final PrivilegedSaslClientFactory other) {
  return super.equals(other) && context.equals(other.context);
}

代码示例来源:origin: org.jboss.eap/wildfly-client-all

@SuppressWarnings("checkstyle:equalshashcode")
public boolean equals(final PrivilegedSaslClientFactory other) {
  return super.equals(other) && context.equals(other.context);
}

代码示例来源:origin: com.fitbur.external/external-bytebuddy

@Override
public boolean equals(Object other) {
  if (this == other) return true;
  if (other == null || getClass() != other.getClass()) return false;
  ExecutingTransformer that = (ExecutingTransformer) other;
  return byteBuddy.equals(that.byteBuddy)
      && binaryLocator.equals(that.binaryLocator)
      && typeStrategy.equals(that.typeStrategy)
      && initializationStrategy.equals(that.initializationStrategy)
      && listener.equals(that.listener)
      && nativeMethodStrategy.equals(that.nativeMethodStrategy)
      && bootstrapInjectionStrategy.equals(that.bootstrapInjectionStrategy)
      && accessControlContext.equals(that.accessControlContext)
      && ignoredTypes.equals(that.ignoredTypes)
      && transformation.equals(that.transformation);
}

代码示例来源:origin: com.fitbur.external/external-bytebuddy

@Override
public boolean equals(Object other) {
  if (this == other) return true;
  if (other == null || getClass() != other.getClass()) return false;
  Default aDefault = (Default) other;
  return binaryLocator.equals(aDefault.binaryLocator)
      && byteBuddy.equals(aDefault.byteBuddy)
      && listener.equals(aDefault.listener)
      && nativeMethodStrategy.equals(aDefault.nativeMethodStrategy)
      && typeStrategy.equals(aDefault.typeStrategy)
      && accessControlContext.equals(aDefault.accessControlContext)
      && initializationStrategy == aDefault.initializationStrategy
      && redefinitionStrategy == aDefault.redefinitionStrategy
      && bootstrapInjectionStrategy.equals(aDefault.bootstrapInjectionStrategy)
      && lambdaInstrumentationStrategy.equals(aDefault.lambdaInstrumentationStrategy)
      && ignoredTypes.equals(aDefault.ignoredTypes)
      && transformation.equals(aDefault.transformation);
}

代码示例来源:origin: au.net.zeus.jgdms/jgdms-platform

@Override
  public boolean equals(Object o){
    if (!(o instanceof SecurityContextImpl)) return false;
    SecurityContext that = (SecurityContext) o;
    return getAccessControlContext().equals(that.getAccessControlContext());
  }
}

代码示例来源:origin: au.net.zeus.jgdms/jgdms-platform

&& (SMPrivilegedContext.equals(executionContext)
|| SMConstructorContext.equals(executionContext)

相关文章