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
public static class WSDefinitionLoader.Certificate extends Object
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 Classes Modifier and Type Class Description static classWSDefinitionLoader.Certificate.CertificateSelectModeType of choose of client certificate for windows.static classWSDefinitionLoader.Certificate.CertificateSourceType of certificate source
-
Constructor Summary
Constructors Constructor Description Certificate()ConstructorCertificate(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
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetCaFilePath()Gets path to the file with server certificateWSDefinitionLoader.Certificate.CertificateSourcegetCaSource()Gets server certificate source.StringgetFilePath()GetsWSDefinitionLoader.Certificate.CertificateSelectModegetSelectMode()Gets type of choose of client certificate for windows.WSDefinitionLoader.Certificate.CertificateSourcegetSource()Gets client certificate source.voidsetCaFilePath(String caFilePath)Sets path to the file with server certificatevoidsetCaSource(WSDefinitionLoader.Certificate.CertificateSource caSource)Sets server certificate source.voidsetFilePath(String filePath)Sets path to the file with client certificatevoidsetSelectMode(WSDefinitionLoader.Certificate.CertificateSelectMode selectMode)Sets type of choose of client certificate for windows.voidsetSource(WSDefinitionLoader.Certificate.CertificateSource source)Sets client certificate source.StringtoString()Supports next format: "caSourceIntValue, sourceIntValue, caFilePath, filePath, selecModeIntValue"
-
-
-
Constructor Detail
-
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 Detail
-
getSource
public WSDefinitionLoader.Certificate.CertificateSource getSource()
Gets client certificate source. SeeWSDefinitionLoader.Certificate.CertificateSource- Returns:
- client certificate source, never
null
-
setSource
public void setSource(WSDefinitionLoader.Certificate.CertificateSource source)
Sets client certificate source. SeeWSDefinitionLoader.Certificate.CertificateSource- Parameters:
source- client certificate source, can't benull
-
getCaSource
public WSDefinitionLoader.Certificate.CertificateSource getCaSource()
Gets server certificate source. SeeWSDefinitionLoader.Certificate.CertificateSource- Returns:
- server certificate source. See
WSDefinitionLoader.Certificate.CertificateSource, nevernull
-
setCaSource
public void setCaSource(WSDefinitionLoader.Certificate.CertificateSource caSource)
Sets server certificate source. SeeWSDefinitionLoader.Certificate.CertificateSource- Parameters:
caSource- server certificate source. SeeWSDefinitionLoader.Certificate.CertificateSource, can't benull
-
getCaFilePath
public String 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
public void setCaFilePath(String caFilePath)
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
public String getFilePath()
Gets- Returns:
- the caFilePath
-
setFilePath
public void setFilePath(String filePath)
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
public WSDefinitionLoader.Certificate.CertificateSelectMode 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
public void setSelectMode(WSDefinitionLoader.Certificate.CertificateSelectMode selectMode)
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
-
-