Java X509Certificate getInstance() method with example

javax.security.cert.X509Certificate.getInstance() method Instantiates an X509Certificate object, and initializes it with the specified byte array. The implementation (X509Certificate is an abstract class) is provided by the class specified as the value of the
cert.provider.x509v1 security property.

Note: All X509Certificate subclasses must provide a constructor of the form:


 public <subClass>(InputStream inStream) ...
 

X509Certificate getInstance() method Signature

public static final X509Certificate getInstance(byte[] certData) throws CertificateException

Parameters:

certData – a byte array containing the DER-encoded certificate.

Returns:

an X509Certificate object initialized with the data from
certData.

Throws:

CertificateException – if a class initialization or certificate parsing error occurs.

javax.security.cert.X509Certificate.getInstance() method Implementation

public static final X509Certificate getInstance(byte[] certData) throws CertificateException{
}

X509Certificate getInstance() method Example

package com.ehowtonow.javax.security.cert.x509certificate;

public class GetInstanceMethodExample {

	public static void main(String[] args) {

	}

}

Output


Ask your questions in eHowToNow Forum

Post your technical, non-technical doubts, questions in our site. Get answer as soon as possible, meanwhile you can help others by answering, unanswered questions.
To Ask new Question : Ask Question
Check our existing discussions : Questions & Answers

  1. Java AsynchronousByteChannel write() method with example 1
  2. Java JTree isPathEditable() method with example
  3. Java ComponentUI getBaseline() method with example
  4. Java DefaultMutableTreeNode getUserObject() method with example
  5. Java HijrahDate plus() method with example
  6. Java BigDecimal multiply() method with example 1
  7. Java PrimitiveIterator.OfDouble next() method with example 1
  8. Java SynthPopupMenuUI update() method with example
  9. Java Matcher matches() method with example
  10. Java SynthProgressBarUI propertyChange() method with example
  11. Java FocusTraversalPolicy getComponentAfter() method with example
  12. Java AWTEvent consume() method with example
  13. Java ZoneOffset getLong() method with example
  14. Java – MetalComboBoxUI.MetalComboPopup Class
  15. Java JColorChooser setUI() method with example

Be the first to comment