public class AuthKeyHints
extends java.lang.Object
Constructor and Description |
---|
AuthKeyHints() |
Modifier and Type | Method and Description |
---|---|
long |
getExpiration() |
java.lang.String |
getIpMask() |
java.lang.String |
getMethods() |
java.lang.String |
getVersion() |
boolean |
isPrefixMode() |
void |
setExpiration(long expiration)
Specify the expiration date of the authkey, in the epoch standard format.
|
void |
setIpMask(java.lang.String ipMask)
An authkey may be generated only for authorized ip.
|
void |
setMethods(java.lang.String methods)
Parameter to tell wich HTTP methods are allowed for a given authkey.
|
void |
setPrefixMode(boolean prefixMode)
Tells if an authkey has to be generated for only a given URL (default behaviour), or a range of URL beginning with a given prefix (prefix mode).
|
void |
setVersion(java.lang.String version)
As the format of the authkey may be modified, to maintain compatibility, a version of the format
is embedded in the authkey.
|
public boolean isPrefixMode()
public void setPrefixMode(boolean prefixMode)
prefixMode
- public long getExpiration()
public void setExpiration(long expiration)
expiration
- public java.lang.String getMethods()
public void setMethods(java.lang.String methods)
methods
- public java.lang.String getIpMask()
public void setIpMask(java.lang.String ipMask)
ipMask
- a Perl 5 regexp for authorized IP.public java.lang.String getVersion()
public void setVersion(java.lang.String version)
version
- Copyright © 2001-2010 Jalios SA. All Rights Reserved.