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 class
WSDefinitionLoader.Certificate.CertificateSelectMode
Type of choose of client certificate for windows.static class
WSDefinitionLoader.Certificate.CertificateSource
Type 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 String
getCaFilePath()
Gets path to the file with server certificateWSDefinitionLoader.Certificate.CertificateSource
getCaSource()
Gets server certificate source.String
getFilePath()
GetsWSDefinitionLoader.Certificate.CertificateSelectMode
getSelectMode()
Gets type of choose of client certificate for windows.WSDefinitionLoader.Certificate.CertificateSource
getSource()
Gets client certificate source.void
setCaFilePath(String caFilePath)
Sets path to the file with server certificatevoid
setCaSource(WSDefinitionLoader.Certificate.CertificateSource caSource)
Sets server certificate source.void
setFilePath(String filePath)
Sets path to the file with client certificatevoid
setSelectMode(WSDefinitionLoader.Certificate.CertificateSelectMode selectMode)
Sets type of choose of client certificate for windows.void
setSource(WSDefinitionLoader.Certificate.CertificateSource source)
Sets client certificate source.String
toString()
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 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 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
-
-