gpt4 book ai didi

org.apache.harmony.security.provider.cert.X509CertFactoryImpl.getCRL()方法的使用及代码示例

转载 作者:知者 更新时间:2024-03-20 16:09:40 27 4
gpt4 key购买 nike

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

X509CertFactoryImpl.getCRL介绍

[英]Returns the CRL object corresponding to the encoding provided by the stream. Resulting object is retrieved from the cache if it contains such correspondence and is constructed on the base of encoding and stored in the cache otherwise.
[中]返回与流提供的编码相对应的CRL对象。如果结果对象包含这样的对应关系,则从缓存中检索该对象,并基于编码构造该对象,否则将其存储在缓存中。

代码示例

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

/**
 * @see java.security.cert.CertificateFactorySpi#engineGenerateCRL(InputStream)
 * method documentation for more info
 */
public CRL engineGenerateCRL(InputStream inStream)
    throws CRLException {
  if (inStream == null) {
    throw new CRLException("inStream == null");
  }
  try {
    if (!inStream.markSupported()) {
      // Create the mark supporting wrapper
      // Mark is needed to recognize the format
      // of provided encoding form (ASN.1 or PEM)
      inStream = new RestoringInputStream(inStream);
    }
    inStream.mark(1);
    // check whether the provided crl is in PEM encoded form
    if (inStream.read() == '-') {
      // decode PEM, retrieve CRL
      return getCRL(decodePEM(inStream, FREE_BOUND_SUFFIX));
    } else {
      inStream.reset();
      // retrieve CRL
      return getCRL(inStream);
    }
  } catch (IOException e) {
    throw new CRLException(e);
  }
}

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

result.add(getCRL(inStream));
} else {
  result.add(getCRL(encoding));

代码示例来源:origin: MobiVM/robovm

/**
 * @see java.security.cert.CertificateFactorySpi#engineGenerateCRL(InputStream)
 * method documentation for more info
 */
public CRL engineGenerateCRL(InputStream inStream)
    throws CRLException {
  if (inStream == null) {
    throw new CRLException("inStream == null");
  }
  try {
    if (!inStream.markSupported()) {
      // Create the mark supporting wrapper
      // Mark is needed to recognize the format
      // of provided encoding form (ASN.1 or PEM)
      inStream = new RestoringInputStream(inStream);
    }
    inStream.mark(1);
    // check whether the provided crl is in PEM encoded form
    if (inStream.read() == '-') {
      // decode PEM, retrieve CRL
      return getCRL(decodePEM(inStream, FREE_BOUND_SUFFIX));
    } else {
      inStream.reset();
      // retrieve CRL
      return getCRL(inStream);
    }
  } catch (IOException e) {
    throw new CRLException(e);
  }
}

代码示例来源:origin: FlexoVM/flexovm

/**
 * @see java.security.cert.CertificateFactorySpi#engineGenerateCRL(InputStream)
 * method documentation for more info
 */
public CRL engineGenerateCRL(InputStream inStream)
    throws CRLException {
  if (inStream == null) {
    throw new CRLException("inStream == null");
  }
  try {
    if (!inStream.markSupported()) {
      // Create the mark supporting wrapper
      // Mark is needed to recognize the format
      // of provided encoding form (ASN.1 or PEM)
      inStream = new RestoringInputStream(inStream);
    }
    inStream.mark(1);
    // check whether the provided crl is in PEM encoded form
    if (inStream.read() == '-') {
      // decode PEM, retrieve CRL
      return getCRL(decodePEM(inStream, FREE_BOUND_SUFFIX));
    } else {
      inStream.reset();
      // retrieve CRL
      return getCRL(inStream);
    }
  } catch (IOException e) {
    throw new CRLException(e);
  }
}

代码示例来源:origin: com.mobidevelop.robovm/robovm-rt

/**
 * @see java.security.cert.CertificateFactorySpi#engineGenerateCRL(InputStream)
 * method documentation for more info
 */
public CRL engineGenerateCRL(InputStream inStream)
    throws CRLException {
  if (inStream == null) {
    throw new CRLException("inStream == null");
  }
  try {
    if (!inStream.markSupported()) {
      // Create the mark supporting wrapper
      // Mark is needed to recognize the format
      // of provided encoding form (ASN.1 or PEM)
      inStream = new RestoringInputStream(inStream);
    }
    inStream.mark(1);
    // check whether the provided crl is in PEM encoded form
    if (inStream.read() == '-') {
      // decode PEM, retrieve CRL
      return getCRL(decodePEM(inStream, FREE_BOUND_SUFFIX));
    } else {
      inStream.reset();
      // retrieve CRL
      return getCRL(inStream);
    }
  } catch (IOException e) {
    throw new CRLException(e);
  }
}

代码示例来源:origin: com.gluonhq/robovm-rt

/**
 * @see java.security.cert.CertificateFactorySpi#engineGenerateCRL(InputStream)
 * method documentation for more info
 */
public CRL engineGenerateCRL(InputStream inStream)
    throws CRLException {
  if (inStream == null) {
    throw new CRLException("inStream == null");
  }
  try {
    if (!inStream.markSupported()) {
      // Create the mark supporting wrapper
      // Mark is needed to recognize the format
      // of provided encoding form (ASN.1 or PEM)
      inStream = new RestoringInputStream(inStream);
    }
    inStream.mark(1);
    // check whether the provided crl is in PEM encoded form
    if (inStream.read() == '-') {
      // decode PEM, retrieve CRL
      return getCRL(decodePEM(inStream, FREE_BOUND_SUFFIX));
    } else {
      inStream.reset();
      // retrieve CRL
      return getCRL(inStream);
    }
  } catch (IOException e) {
    throw new CRLException(e);
  }
}

代码示例来源:origin: ibinti/bugvm

/**
 * @see java.security.cert.CertificateFactorySpi#engineGenerateCRL(InputStream)
 * method documentation for more info
 */
public CRL engineGenerateCRL(InputStream inStream)
    throws CRLException {
  if (inStream == null) {
    throw new CRLException("inStream == null");
  }
  try {
    if (!inStream.markSupported()) {
      // Create the mark supporting wrapper
      // Mark is needed to recognize the format
      // of provided encoding form (ASN.1 or PEM)
      inStream = new RestoringInputStream(inStream);
    }
    inStream.mark(1);
    // check whether the provided crl is in PEM encoded form
    if (inStream.read() == '-') {
      // decode PEM, retrieve CRL
      return getCRL(decodePEM(inStream, FREE_BOUND_SUFFIX));
    } else {
      inStream.reset();
      // retrieve CRL
      return getCRL(inStream);
    }
  } catch (IOException e) {
    throw new CRLException(e);
  }
}

代码示例来源:origin: com.bugvm/bugvm-rt

/**
 * @see java.security.cert.CertificateFactorySpi#engineGenerateCRL(InputStream)
 * method documentation for more info
 */
public CRL engineGenerateCRL(InputStream inStream)
    throws CRLException {
  if (inStream == null) {
    throw new CRLException("inStream == null");
  }
  try {
    if (!inStream.markSupported()) {
      // Create the mark supporting wrapper
      // Mark is needed to recognize the format
      // of provided encoding form (ASN.1 or PEM)
      inStream = new RestoringInputStream(inStream);
    }
    inStream.mark(1);
    // check whether the provided crl is in PEM encoded form
    if (inStream.read() == '-') {
      // decode PEM, retrieve CRL
      return getCRL(decodePEM(inStream, FREE_BOUND_SUFFIX));
    } else {
      inStream.reset();
      // retrieve CRL
      return getCRL(inStream);
    }
  } catch (IOException e) {
    throw new CRLException(e);
  }
}

代码示例来源:origin: ibinti/bugvm

result.add(getCRL(inStream));
} else {
  result.add(getCRL(encoding));

代码示例来源:origin: FlexoVM/flexovm

result.add(getCRL(inStream));
} else {
  result.add(getCRL(encoding));

代码示例来源:origin: MobiVM/robovm

result.add(getCRL(inStream));
} else {
  result.add(getCRL(encoding));

代码示例来源:origin: com.mobidevelop.robovm/robovm-rt

result.add(getCRL(inStream));
} else {
  result.add(getCRL(encoding));

代码示例来源:origin: com.bugvm/bugvm-rt

result.add(getCRL(inStream));
} else {
  result.add(getCRL(encoding));

代码示例来源:origin: com.gluonhq/robovm-rt

result.add(getCRL(inStream));
} else {
  result.add(getCRL(encoding));

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com