Class Context
- java.lang.Object
-
- com.labs64.netlicensing.domain.vo.GenericContext<String>
-
- com.labs64.netlicensing.domain.vo.Context
-
public class Context extends GenericContext<String>
Provides calling context for the NetLicensing API calls.The Context object may differ depending on the level at which NetLicensing API is called.
For the internal Java NetLicensing API the Context provides information about the targeted Vendor.
-
-
Constructor Summary
Constructors Constructor Description Context()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getApiKey()
String
getBaseUrl()
String
getPassword()
String
getPublicKey()
SecurityMode
getSecurityMode()
String
getUsername()
String
getVendorNumber()
Context
setApiKey(String apiKey)
Context
setBaseUrl(String baseUrl)
Context
setPassword(String password)
void
setPublicKey(String publicKey)
Add public key to be used for validate signed NetLicensing response.Context
setSecurityMode(SecurityMode securityMode)
Context
setUsername(String username)
Context
setVendorNumber(String vendorNumber)
-
Methods inherited from class com.labs64.netlicensing.domain.vo.GenericContext
containsKey, containsKey, getContextMap, getObject, getObject, getValue, getValue, setObject, setObject, setObject, setValue, setValue, setValue
-
-
-
-
Method Detail
-
getBaseUrl
public String getBaseUrl()
-
getUsername
public String getUsername()
-
getPassword
public String getPassword()
-
getApiKey
public String getApiKey()
-
setSecurityMode
public Context setSecurityMode(SecurityMode securityMode)
-
getSecurityMode
public SecurityMode getSecurityMode()
-
getVendorNumber
public String getVendorNumber()
-
setPublicKey
public void setPublicKey(String publicKey)
Add public key to be used for validate signed NetLicensing response.- Parameters:
publicKey
- client publicKey.
-
getPublicKey
public String getPublicKey()
-
-