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 enumType of choose of client certificate for windows.static enumType 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.voidsetCaFilePath(String caFilePath) Sets path to the file with server certificatevoidSets server certificate source.voidsetFilePath(String filePath) Sets path to the file with client certificatevoidSets type of choose of client certificate for windows.voidSets 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 benullsource- client certificate source. SeeWSDefinitionLoader.Certificate.CertificateSource, can't benullcaFilePath- path to the file with server certificate, can be empty string if there is no path to certificate, can't benullfilePath- path to the file with client certificate, can be empty string if there is no path to certificate, can't benullselectMode- 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 benullsource- client certificate source. SeeWSDefinitionLoader.Certificate.CertificateSource, can't benullcaFilePath- path to the file with server certificate, can be empty string if there is no path to certificate, can't benullfilePath- 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"
-