javax.security.cert.X509Certificate.getNotAfter()方法的使用及代码示例

x33g5p2x  于2022-02-02 转载在 其他  
字(3.0k)|赞(0)|评价(0)|浏览(245)

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

X509Certificate.getNotAfter介绍

[英]Returns the notAfter date of the validity period of the certificate.
[中]返回证书有效期之后的日期。

代码示例

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

@Override
public Date getNotAfter() {
  return unwrap().getNotAfter();
}

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

@Override
public Date getNotAfter() {
  return unwrap().getNotAfter();
}

代码示例来源:origin: io.netty/netty-handler

@Override
public Date getNotAfter() {
  return unwrap().getNotAfter();
}

代码示例来源:origin: apache/activemq-artemis

@Override
public Date getNotAfter() {
  return unwrap().getNotAfter();
}

代码示例来源:origin: apache/activemq-artemis

@Override
public Date getNotAfter() {
  return unwrap().getNotAfter();
}

代码示例来源:origin: org.apache.ratis/ratis-proto-shaded

@Override
public Date getNotAfter() {
  return unwrap().getNotAfter();
}

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

@Override
public Date getNotAfter() {
  return unwrap().getNotAfter();
}

代码示例来源:origin: com.datastax.oss/java-driver-core-shaded

@Override
public Date getNotAfter() {
  return unwrap().getNotAfter();
}

代码示例来源:origin: com.aliyun.openservices/ons-client

@Override
public Date getNotAfter() {
  return unwrap().getNotAfter();
}

代码示例来源:origin: org.apache.hbase.thirdparty/hbase-shaded-netty

@Override
public Date getNotAfter() {
  return unwrap().getNotAfter();
}

代码示例来源:origin: KostyaSha/yet-another-docker-plugin

@Override
public Date getNotAfter() {
  return unwrap().getNotAfter();
}

代码示例来源:origin: org.apache.activemq/artemis-jms-client-all

@Override
public Date getNotAfter() {
  return unwrap().getNotAfter();
}

代码示例来源:origin: couchbase/couchbase-jvm-core

@Override
public Date getNotAfter() {
  return unwrap().getNotAfter();
}

代码示例来源:origin: com.couchbase.client/core-io

@Override
public Date getNotAfter() {
  return unwrap().getNotAfter();
}

代码示例来源:origin: io.bitsensor/proto

@Override
public Date getNotAfter() {
  return unwrap().getNotAfter();
}

代码示例来源:origin: org.apache.camel/camel-netty4

message.setHeader(NettyConstants.NETTY_SSL_CLIENT_CERT_NOT_AFTER, cert.getNotAfter());

代码示例来源:origin: org.apache.camel/camel-netty

message.setHeader(NettyConstants.NETTY_SSL_CLIENT_CERT_NOT_AFTER, cert.getNotAfter());

代码示例来源:origin: jaredrummler/APKParser

public CertificateMeta parse() throws IOException, CertificateException {
 X509Certificate certificate = X509Certificate.getInstance(Utils.toByteArray(in));
 CertificateMeta.Builder builder = CertificateMeta.newCertificateMeta();
 byte[] bytes = certificate.getEncoded();
 String certMd5 = md5Digest(bytes);
 String publicKeyString = byteToHexString(bytes);
 String certBase64Md5 = md5Digest(publicKeyString);
 builder.data(bytes);
 builder.certBase64Md5(certBase64Md5);
 builder.certMd5(certMd5);
 builder.startDate(certificate.getNotBefore());
 builder.endDate(certificate.getNotAfter());
 builder.signAlgorithm(certificate.getSigAlgName());
 builder.signAlgorithmOID(certificate.getSigAlgOID());
 return builder.build();
}

相关文章