public class RestConfiguration extends Object
Modifier and Type | Class and Description |
---|---|
static class |
RestConfiguration.CRUD |
Modifier and Type | Field and Description |
---|---|
HashMap<String,RestMethodHandler> |
restHashMap
Associated RestMethod Handlers
|
Constructor and Description |
---|
RestConfiguration() |
Modifier and Type | Method and Description |
---|---|
HmacSha256 |
getHmacSha256() |
String |
getRestAddress() |
byte[] |
getResthandlersCrud() |
int |
getRestPort() |
long |
getRestTimeLimit() |
void |
initializeKey(File authentKey)
Set Key from file
|
void |
initializeKey(String authentKey)
Set Key from String directly
|
boolean |
isRestAuthenticated() |
boolean |
isRestSignature() |
boolean |
isRestSsl() |
void |
setHmacSha256(HmacSha256 hmacSha256) |
void |
setRestAddress(String restAddress) |
void |
setRestAuthenticated(boolean restAuthenticated) |
void |
setResthandlersCrud(byte[] resthandlersCrud) |
void |
setRestPort(int restPort) |
void |
setRestSignature(boolean restSignature) |
void |
setRestSsl(boolean restSsl) |
void |
setRestTimeLimit(long restTimeLimit) |
String |
toString() |
public final HashMap<String,RestMethodHandler> restHashMap
public void initializeKey(String authentKey)
authentKey
- public void initializeKey(File authentKey) throws CryptoException, IOException
authentKey
- CryptoException
IOException
public String getRestAddress()
public void setRestAddress(String restAddress)
restAddress
- the restAddress to setpublic int getRestPort()
public void setRestPort(int restPort)
restPort
- the restPort to setpublic boolean isRestSsl()
public void setRestSsl(boolean restSsl)
restSsl
- the restSsl to setpublic long getRestTimeLimit()
public void setRestTimeLimit(long restTimeLimit)
restTimeLimit
- the restTimeLimit to setpublic boolean isRestAuthenticated()
public void setRestAuthenticated(boolean restAuthenticated)
restAuthenticated
- the restAuthenticated to setpublic boolean isRestSignature()
public void setRestSignature(boolean restSignature)
restSignature
- the restSignature to setpublic HmacSha256 getHmacSha256()
public void setHmacSha256(HmacSha256 hmacSha256)
hmacSha256
- the hmacSha256 to setpublic byte[] getResthandlersCrud()
public void setResthandlersCrud(byte[] resthandlersCrud)
resthandlersCrud
- the resthandlersCrud to setCopyright © 2009–2020 Waarp. All rights reserved.