本文整理了Java中javax.security.cert.X509Certificate.getPublicKey()
方法的一些代码示例,展示了X509Certificate.getPublicKey()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。X509Certificate.getPublicKey()
方法的具体详情如下:
包路径:javax.security.cert.X509Certificate
类名称:X509Certificate
方法名:getPublicKey
暂无
代码示例来源:origin: redisson/redisson
@Override
public PublicKey getPublicKey() {
return unwrap().getPublicKey();
}
代码示例来源:origin: wildfly/wildfly
@Override
public PublicKey getPublicKey() {
return unwrap().getPublicKey();
}
代码示例来源:origin: io.netty/netty-handler
@Override
public PublicKey getPublicKey() {
return unwrap().getPublicKey();
}
代码示例来源:origin: apache/activemq-artemis
@Override
public PublicKey getPublicKey() {
return unwrap().getPublicKey();
}
代码示例来源:origin: KostyaSha/yet-another-docker-plugin
@Override
public PublicKey getPublicKey() {
return unwrap().getPublicKey();
}
代码示例来源:origin: apache/activemq-artemis
@Override
public PublicKey getPublicKey() {
return unwrap().getPublicKey();
}
代码示例来源:origin: org.apache.activemq/artemis-jms-client-all
@Override
public PublicKey getPublicKey() {
return unwrap().getPublicKey();
}
代码示例来源:origin: org.apache.hbase.thirdparty/hbase-shaded-netty
@Override
public PublicKey getPublicKey() {
return unwrap().getPublicKey();
}
代码示例来源:origin: org.jboss.eap/wildfly-client-all
@Override
public PublicKey getPublicKey() {
return unwrap().getPublicKey();
}
代码示例来源:origin: com.aliyun.openservices/ons-client
@Override
public PublicKey getPublicKey() {
return unwrap().getPublicKey();
}
代码示例来源:origin: com.couchbase.client/core-io
@Override
public PublicKey getPublicKey() {
return unwrap().getPublicKey();
}
代码示例来源:origin: org.apache.ratis/ratis-proto-shaded
@Override
public PublicKey getPublicKey() {
return unwrap().getPublicKey();
}
代码示例来源:origin: couchbase/couchbase-jvm-core
@Override
public PublicKey getPublicKey() {
return unwrap().getPublicKey();
}
代码示例来源:origin: io.bitsensor/proto
@Override
public PublicKey getPublicKey() {
return unwrap().getPublicKey();
}
代码示例来源:origin: com.datastax.oss/java-driver-core-shaded
@Override
public PublicKey getPublicKey() {
return unwrap().getPublicKey();
}
代码示例来源:origin: org.seedstack.seed/seed-crypto-support
@Override
public byte[] encrypt(byte[] toCrypt) throws InvalidKeyException {
PublicKey pk = this.certificateDefinition.getCertificate().getPublicKey();
return crypt(toCrypt, pk, Cipher.ENCRYPT_MODE);
}
代码示例来源:origin: org.picketlink/picketlink-seam
publicKey = cert.getPublicKey();
代码示例来源:origin: RUB-NDS/TLS-Attacker
try {
X509Certificate x509Cert = X509Certificate.getInstance(cert.getCertificateAt(0).getEncoded());
PublicKey key = x509Cert.getPublicKey();
if (key instanceof RSAPublicKey || key instanceof ECPublicKey || key instanceof DSAPublicKey) {
return key;
ASN1Integer asnModulus = (ASN1Integer) dhparams.getObjectAt(0); // modulus
ASN1Integer asnGenerator = (ASN1Integer) dhparams.getObjectAt(1); // generator
BigInteger publicKey = new BigInteger(1, x509Cert.getPublicKey().getEncoded());
return new CustomDhPublicKey(asnModulus.getPositiveValue(), asnGenerator.getPositiveValue(), publicKey);
内容来源于网络,如有侵权,请联系作者删除!