![JAR search and dependency download from the Maven repository](/logo.png)
nl.open.jwtdependency.org.bouncycastle.x509.X509AttributeCertificate Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of java-jwt-nodependencies Show documentation
Show all versions of java-jwt-nodependencies Show documentation
This is a drop in replacement for the auth0 java-jwt library (see https://github.com/auth0/java-jwt). This jar makes sure there are no external dependencies (e.g. fasterXml, Apacha Commons) needed. This is useful when deploying to an application server (e.g. tomcat with Alfreso or Pega).
The newest version!
package org.bouncycastle.x509;
import java.io.IOException;
import java.math.BigInteger;
import java.security.InvalidKeyException;
import java.security.NoSuchAlgorithmException;
import java.security.NoSuchProviderException;
import java.security.PublicKey;
import java.security.SignatureException;
import java.security.cert.CertificateException;
import java.security.cert.CertificateExpiredException;
import java.security.cert.CertificateNotYetValidException;
import java.security.cert.X509Extension;
import java.util.Date;
/**
* Interface for an X.509 Attribute Certificate.
* @deprecated use X509CertificateHolder class in the PKIX package.
*/
public interface X509AttributeCertificate
extends X509Extension
{
/**
* Return the version number for the certificate.
*
* @return the version number.
*/
public int getVersion();
/**
* Return the serial number for the certificate.
*
* @return the serial number.
*/
public BigInteger getSerialNumber();
/**
* Return the date before which the certificate is not valid.
*
* @return the "not valid before" date.
*/
public Date getNotBefore();
/**
* Return the date after which the certificate is not valid.
*
* @return the "not valid afer" date.
*/
public Date getNotAfter();
/**
* Return the holder of the certificate.
*
* @return the holder.
*/
public AttributeCertificateHolder getHolder();
/**
* Return the issuer details for the certificate.
*
* @return the issuer details.
*/
public AttributeCertificateIssuer getIssuer();
/**
* Return the attributes contained in the attribute block in the certificate.
*
* @return an array of attributes.
*/
public X509Attribute[] getAttributes();
/**
* Return the attributes with the same type as the passed in oid.
*
* @param oid the object identifier we wish to match.
* @return an array of matched attributes, null if there is no match.
*/
public X509Attribute[] getAttributes(String oid);
public boolean[] getIssuerUniqueID();
public void checkValidity()
throws CertificateExpiredException, CertificateNotYetValidException;
public void checkValidity(Date date)
throws CertificateExpiredException, CertificateNotYetValidException;
public byte[] getSignature();
public void verify(PublicKey key, String provider)
throws CertificateException, NoSuchAlgorithmException,
InvalidKeyException, NoSuchProviderException, SignatureException;
/**
* Return an ASN.1 encoded byte array representing the attribute certificate.
*
* @return an ASN.1 encoded byte array.
* @throws IOException if the certificate cannot be encoded.
*/
public byte[] getEncoded()
throws IOException;
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy