public class HwsPropertyCredential extends java.lang.Object implements HwsCredential
Constructor and Description |
---|
HwsPropertyCredential()
載入憑證資訊檔案(HwsCredential.properties)。
|
HwsPropertyCredential(java.lang.String propertyFileName)
透過Property檔案,載入憑證資訊。
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getAccessKey() |
java.lang.String |
getSecretKey() |
void |
setAccessKey(java.lang.String accessKey) |
void |
setSecretKey(java.lang.String secretKey) |
public HwsPropertyCredential() throws java.io.FileNotFoundException, java.lang.IllegalArgumentException, java.io.IOException
java.io.FileNotFoundException
java.lang.IllegalArgumentException
java.io.IOException
public HwsPropertyCredential(java.lang.String propertyFileName) throws java.io.FileNotFoundException, java.io.IOException, java.lang.IllegalArgumentException
propertyFileName
- Property檔名java.io.FileNotFoundException
java.io.IOException
java.lang.IllegalArgumentException
public java.lang.String getAccessKey()
getAccessKey
in interface HwsCredential
public void setAccessKey(java.lang.String accessKey)
setAccessKey
in interface HwsCredential
public java.lang.String getSecretKey()
getSecretKey
in interface HwsCredential
public void setSecretKey(java.lang.String secretKey)
setSecretKey
in interface HwsCredential