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.FileNotFoundExceptionjava.lang.IllegalArgumentExceptionjava.io.IOExceptionpublic HwsPropertyCredential(java.lang.String propertyFileName)
throws java.io.FileNotFoundException,
java.io.IOException,
java.lang.IllegalArgumentException
propertyFileName - Property檔名java.io.FileNotFoundExceptionjava.io.IOExceptionjava.lang.IllegalArgumentExceptionpublic java.lang.String getAccessKey()
getAccessKey in interface HwsCredentialpublic void setAccessKey(java.lang.String accessKey)
setAccessKey in interface HwsCredentialpublic java.lang.String getSecretKey()
getSecretKey in interface HwsCredentialpublic void setSecretKey(java.lang.String secretKey)
setSecretKey in interface HwsCredential