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 CompositeData getAll() method with example
  2. Java FixedHeightLayoutCache treeNodesChanged() method with example
  3. Java RMIConnectionImpl_Stub setAttributes() method with example
  4. Java JTableHeader getDraggedColumn() method with example
  5. Java KeyboardFocusManager focusNextComponent() method with example 1
  6. Java MenuItem getShortcut() method with example
  7. Java KeyStore setKeyEntry() method with example 1
  8. Java RelationServiceMBean removeRelation() method with example
  9. Java – AncestorEvent Class
  10. Java MonthDay withDayOfMonth() method with example
  11. Java NamingContextExtPOA _this() method with example
  12. Java – SynthSliderUI Class
  13. Java – UID Class
  14. Java AbstractButton.AccessibleAbstractButton getAccessibleActionCount() method with example
  15. Java JInternalFrame setLayout() method with example

Be the first to comment