summaryrefslogtreecommitdiffstats
path: root/tdejava/koala/org/trinitydesktop/koala/KSSLCertChain.java
blob: 9f30edc2d75258f554cd9933995488ddb1028817 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
//Auto-generated by kalyptus. DO NOT EDIT.
package org.trinitydesktop.koala;

import org.trinitydesktop.qt.Qt;
import org.trinitydesktop.qt.QtSupport;

/**

 KDE Certificate Chain Representation Class
 This class provides a representation for an X.509 certificate chain.
		@author George Staikos <staikos@kde.org>

		@short KDE X.509 Certificate Chain.
		@see KSSL
		@see KSSLCertificate
		@see KSSLPeerInfo

*/
public class KSSLCertChain implements QtSupport {
	private long _qt;
	private boolean _allocatedInJavaWorld = true;
	protected KSSLCertChain(Class dummy){}

	/**
		  Construct a KSSLCertChain object
			 		@short     Construct a KSSLCertChain object
	*/
	public KSSLCertChain() {
		newKSSLCertChain();
	}
	private native void newKSSLCertChain();
	/**
		  Determine if this represents a valid certificate chain
				@return true if it is a valid certificate chain

		@short     Determine if this represents a valid certificate chain
	*/
	public native boolean isValid();
	/**
		  Do a deep copy of the certificate chain.
			  This is an expensive operation, and you are responsible for deleting
		  the returned object yourself.
			 		@return pointer to a new certificate chain object

		@short     Do a deep copy of the certificate chain.
	*/
	public native KSSLCertChain replicate();
	/**
		  Set the raw chain from OpenSSL
				 		@short     Set the raw chain from OpenSSL
	*/
	// void setChain(void* arg1); >>>> NOT CONVERTED
	// void setChain(TQPtrList<KSSLCertificate>& arg1); >>>> NOT CONVERTED
	/**
		  Set the certificate chain as a list of base64 encoded X.509
		  certificates.
			@param chain the certificate chain
			 		@short     Set the certificate chain as a list of base64 encoded X.
	*/
	public native void setCertChain(String[] chain);
	/**
		  Obtain a copy of the certificate chain.
				@return a deep copy of the certificate chain.

		@short     Obtain a copy of the certificate chain.
		@see KSSLCertificate
	*/
	// TQPtrList<KSSLCertificate> getChain(); >>>> NOT CONVERTED
	/**
		  Determine the number of entries (depth) of the chain.
				@return the number of entries in the certificate chain

		@short     Determine the number of entries (depth) of the chain.
	*/
	public native int depth();
	/**
		  Read the raw chain in OpenSSL format
				 		@short     Read the raw chain in OpenSSL format
	*/
	// void* rawChain(); >>>> NOT CONVERTED
	/** Deletes the wrapped C++ instance */
	protected native void finalize() throws InternalError;
	/** Delete the wrapped C++ instance ahead of finalize() */
	public native void dispose();
	/** Has the wrapped C++ instance been deleted? */
	public native boolean isDisposed();
}