Package com._1c.g5.v8.dt.ws.common
Class WSDefinitionLoader.Certificate
java.lang.Object
com._1c.g5.v8.dt.ws.common.WSDefinitionLoader.Certificate
- Enclosing class:
- WSDefinitionLoader
Special class contains structure of certificate for getting content of WSDL file. This certificate need for security connection to web service
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enum
Type of choose of client certificate for windows.static enum
Type of certificate source -
Constructor Summary
ConstructorsConstructorDescriptionConstructorCertificate
(WSDefinitionLoader.Certificate.CertificateSource caSource, WSDefinitionLoader.Certificate.CertificateSource source, String caFilePath, String filePath) ConstructorCertificate
(WSDefinitionLoader.Certificate.CertificateSource caSource, WSDefinitionLoader.Certificate.CertificateSource source, String caFilePath, String filePath, WSDefinitionLoader.Certificate.CertificateSelectMode selectMode) Constructor -
Method Summary
Modifier and TypeMethodDescriptionGets path to the file with server certificateGets server certificate source.GetsGets type of choose of client certificate for windows.Gets client certificate source.void
setCaFilePath
(String caFilePath) Sets path to the file with server certificatevoid
Sets server certificate source.void
setFilePath
(String filePath) Sets path to the file with client certificatevoid
Sets type of choose of client certificate for windows.void
Sets client certificate source.toString()
Supports next format: "caSourceIntValue, sourceIntValue, caFilePath, filePath, selecModeIntValue"
-
Constructor Details
-
Certificate
public Certificate()Constructor -
Certificate
public Certificate(WSDefinitionLoader.Certificate.CertificateSource caSource, WSDefinitionLoader.Certificate.CertificateSource source, String caFilePath, String filePath, WSDefinitionLoader.Certificate.CertificateSelectMode selectMode) Constructor- Parameters:
caSource
- server certificate source. SeeWSDefinitionLoader.Certificate.CertificateSource
, can't benull
source
- client certificate source. SeeWSDefinitionLoader.Certificate.CertificateSource
, can't benull
caFilePath
- path to the file with server certificate, can be empty string if there is no path to certificate, can't benull
filePath
- path to the file with client certificate, can be empty string if there is no path to certificate, can't benull
selectMode
- type of choose of client certificate for windows. Linux doesn't support it, can't benull
-
Certificate
public Certificate(WSDefinitionLoader.Certificate.CertificateSource caSource, WSDefinitionLoader.Certificate.CertificateSource source, String caFilePath, String filePath) Constructor- Parameters:
caSource
- server certificate source. SeeWSDefinitionLoader.Certificate.CertificateSource
, can't benull
source
- client certificate source. SeeWSDefinitionLoader.Certificate.CertificateSource
, can't benull
caFilePath
- path to the file with server certificate, can be empty string if there is no path to certificate, can't benull
filePath
- path to the file with client certificate, can be empty string if there is no path to certificate, can't benull
-
-
Method Details
-
getSource
Gets client certificate source. SeeWSDefinitionLoader.Certificate.CertificateSource
- Returns:
- client certificate source, never
null
-
setSource
Sets client certificate source. SeeWSDefinitionLoader.Certificate.CertificateSource
- Parameters:
source
- client certificate source, can't benull
-
getCaSource
Gets server certificate source. SeeWSDefinitionLoader.Certificate.CertificateSource
- Returns:
- server certificate source. See
WSDefinitionLoader.Certificate.CertificateSource
, nevernull
-
setCaSource
Sets server certificate source. SeeWSDefinitionLoader.Certificate.CertificateSource
- Parameters:
caSource
- server certificate source. SeeWSDefinitionLoader.Certificate.CertificateSource
, can't benull
-
getCaFilePath
Gets path to the file with server certificate- Returns:
- path to the file with server certificate, can be empty string if there is no path to certificate, can't be
null
-
setCaFilePath
Sets path to the file with server certificate- Parameters:
filePath
- path to the file with server certificate, can be empty string if there is no path to certificate, can't benull
-
getFilePath
Gets- Returns:
- the caFilePath
-
setFilePath
Sets path to the file with client certificate- Parameters:
filePath
- path to the file with client certificate, can be empty string if there is no path to certificate, can't benull
-
getSelectMode
Gets type of choose of client certificate for windows. Linux doesn't support it- Returns:
- type of choose of client certificate for windows. Linux doesn't support it, can't be
null
-
setSelectMode
Sets type of choose of client certificate for windows. Linux doesn't support it- Parameters:
selectMode
- type of choose of client certificate for windows. Linux doesn't support it, can't benull
-
toString
Supports next format: "caSourceIntValue, sourceIntValue, caFilePath, filePath, selecModeIntValue"
-