Package com.adyen.terminal.security
Class X509CertificateInfo
- java.lang.Object
-
- com.adyen.terminal.security.X509CertificateInfo
-
- All Implemented Interfaces:
CertificateInfo
public final class X509CertificateInfo extends Object implements CertificateInfo
An adapter that wraps an X509Certificate to implement CertificateInfo.
-
-
Constructor Summary
Constructors Constructor Description X509CertificateInfo(X509Certificate certificate)Creates a new X509CertificateInfo.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetSubjectName()Returns the subject distinguished name of the certificate.
-
-
-
Constructor Detail
-
X509CertificateInfo
public X509CertificateInfo(X509Certificate certificate)
Creates a new X509CertificateInfo.- Parameters:
certificate- the X509Certificate to wrap.
-
-
Method Detail
-
getSubjectName
public String getSubjectName()
Description copied from interface:CertificateInfoReturns the subject distinguished name of the certificate.- Specified by:
getSubjectNamein interfaceCertificateInfo- Returns:
- the subject DN as a string.
-
-