This method are the overridden implementation of
getExtendedKeyUsage method in X509Certificate in the Sun
provider. It is better performance-wise since it returns cached
values.
506371
public synchronized List<String> getExtendedKeyUsage()
        throws CertificateParsingException {
        if (readOnly && extKeyUsage != null) {
            return extKeyUsage;
        } else {
            ExtendedKeyUsageExtension ext = getExtendedKeyUsageExtension();
            if (ext == null) {
                return null;
            }
            extKeyUsage =
                Collections.unmodifiableList(ext.getExtendedKeyUsage());
            return extKeyUsage;
        }
    }
1305504
public static ExtendedJTATransaction getExtendedJTATransaction() {
        if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) {
            Tr.debug(tc, "getExtendedJTATransaction", instance);
        }
        return instance;
    }
235026
static int getUsageIndex(DSAKeyValidationParameters.Usage usage)
    {
        if (usage == DSAKeyValidationParameters.Usage.DIGITAL_SIGNATURE) {
            return DSAParameterGenerationParameters.DIGITAL_SIGNATURE_USAGE;
        } else if (usage == DSAKeyValidationParameters.Usage.KEY_ESTABLISHMENT) {
            return DSAParameterGenerationParameters.KEY_ESTABLISHMENT_USAGE;
        }
        return -1;
    }
220826
public void setExtendedKeyUsage(java.util.Collection<String> extendedKeyUsage) {
        if (extendedKeyUsage == null) {
            this.extendedKeyUsage = null;
            return;
        }

        this.extendedKeyUsage = new java.util.ArrayList<String>(extendedKeyUsage);
    }
734698
String getNamespacedKey(CacheNamespace cacheNamespace, String key) {
        String namespaceIndicator = getNamespaceIndicator(cacheNamespace);

        if (cacheNamespace.isNamespaceExpirationRequired() == false) {
            return namespaceIndicator + ":" + key;
        }

        String namespaceIndicatorKey = namespaceIndicator + NAMESPACE_NAME_SQUENCE_SEPARATOR;
        long namespaceSquence = memcachedClient.incr(namespaceIndicatorKey, 0L, System.currentTimeMillis(),
                DEFAULT_NAMESPACE_SEQUENCE_EXPIRY_SECONDS);

        return namespaceIndicatorKey + namespaceSquence + ":" + key;
    }
41764
String getKeyPrefix(StatementPartitioning partitioning, DeterminismMode detMode, String joinOrder) {
        // no caching for inferred yet
        if (partitioning.isInferred()) {
            return null;
        }

        String joinOrderPrefix = "#";
        if (joinOrder != null) {
            joinOrderPrefix += joinOrder;
        }

        boolean partitioned = partitioning.wasSpecifiedAsSingle();

        return joinOrderPrefix + String.valueOf(detMode.toChar()) + (partitioned ? "P#" : "R#");
    }
864130
public String getExtendedName(int ch)
    {
        String result = getName(ch, UCharacterNameChoice.UNICODE_CHAR_NAME);
        if (result == null) {
            // TODO: Return Name_Alias/control names for control codes 0..1F & 7F..9F.
            result = getExtendedOr10Name(ch);
        }
        return result;
    }
454042
@Override
    public void getUserSessionKey ( CIFSContext tc, byte[] chlng, byte[] dest, int offset ) throws SmbException {
        if ( this.hashesExternal ) {
            return;
        }
        super.getUserSessionKey(tc, chlng, dest, offset);
    }
593284
public static ProxyCertInfo getProxyCertInfo(X509Extension ext)
	throws IOException {
	return ProxyCertInfo.getInstance(BouncyCastleUtil.getExtensionObject(ext));
    }
488458
public static ExtendedKeyUsage getExtendedKeyUsage(Set<String> usages)
    {
        KeyPurposeId[] keyUsages = new KeyPurposeId[usages.size()];
        int i = 0;

        for (String usage : usages) {
            keyUsages[i++] = KeyPurposeId.getInstance(new ASN1ObjectIdentifier(usage));
        }

        return new ExtendedKeyUsage(keyUsages);
    }
1161516
protected String getKey(String prefix, AnnotatedElement element) {
        String value = element.getAnnotation(Property.class).value();
        return concat(prefix, value);
    }
729848
static String getBuiltInBindingsKey(String key) {
    int start = startOfType(key);
    if (substringStartsWith(key, start, PROVIDER_PREFIX)) {
      return extractKey(key, start, key.substring(0, start), PROVIDER_PREFIX);
    } else if (substringStartsWith(key, start, MEMBERS_INJECTOR_PREFIX)) {
      return extractKey(key, start, "members/", MEMBERS_INJECTOR_PREFIX);
    } else {
      return null;
    }
  }
972008
public static ExtendedKeyUsages getExtendedKeyUsages(ExtendedKeyUsage usages)
    {
        if (usages == null) {
            return null;
        }

        List<String> usageStr = new ArrayList<String>();

        for (KeyPurposeId keyPurposeId : usages.getUsages()) {
            usageStr.add(keyPurposeId.getId());
        }

        return new ExtendedKeyUsages(usageStr);
    }
579591
protected String getEncryptionKey() {
        if (extendedMetadata != null && extendedMetadata.getEncryptionKey() != null) {
            return extendedMetadata.getEncryptionKey();
        } else {
            return keyManager.getDefaultCredentialName();
        }
    }
189070
func (s *Filters) SetExtendedKeyUsage(v []*string) *Filters {
	s.ExtendedKeyUsage = v
	return s
}
1259322
@Override
  protected String consumeDecimal() {

    StringBuilder builder = null;
    boolean noSign = false;
    boolean noExponent = false;
    boolean noDot = false;
    boolean done = false;
    char c = 0;
    hasNext();
    while (true) {
      int start = this.offset;
      while (this.offset < this.limit) {
        c = this.buffer[this.offset];
        if ((c == '+') || (c == '-')) {
          if (noSign) {
            done = true;
            break;
          } else {
            noSign = true;
          }
        } else if (c == 'e') {
          if (noExponent) {
            done = true;
            break;
          } else {
            noExponent = true;
            noSign = false;
            noDot = true;
          }
        } else if (c == '.') {
          if (noDot) {
            done = true;
            break;
          } else {
            noDot = true;
          }
        } else if ((c >= '0') && (c <= '9')) {
          noSign = true;
        } else {
          done = true;
          break;
        }
        this.offset++;
      }
      if (done) {
        return getAppended(builder, start, this.offset);
      }
      int len = this.offset - start;
      if (len > 0) {
        builder = append(builder, start, this.offset);
      }
      if (done || !fill()) {
        if (builder == null) {
          throw new IllegalStateException("Invalid character for decimal number: " + c);
        }
        return builder.toString();
      }
    }
  }
994079
public static String getIssuedTo(final X509Certificate certificate)
	{
		final X500Principal issuedToPrincipal = certificate.getIssuerX500Principal();
		final String issuedTo = issuedToPrincipal.getName();
		return issuedTo;
	}