public class ClientRequestOptions extends Object
Modifier and Type | Field and Description |
---|---|
static int |
DAY
The number of milliseconds in a day.
|
static int |
MINUTE
The number of milliseconds in a minute.
|
static int |
WEEK
The number of milliseconds in a week.
|
Constructor and Description |
---|
ClientRequestOptions()
Creates a new instance of KdcControls.
|
Modifier and Type | Method and Description |
---|---|
long |
getAllowedClockSkew()
Returns the allowed clock skew.
|
Set<InetAddress> |
getClientAddresses()
Returns the client addresses.
|
Set<EncryptionType> |
getEncryptionTypes()
Returns the encryption types.
|
long |
getLifeTime() |
long |
getRenewableLifetime() |
Date |
getStartTime()
Returns the start time.
|
int |
getUdpPreferenceLimit() |
boolean |
isAllowPostdate()
Returns whether postdating is allowed.
|
boolean |
isForwardable()
Returns whether to request a forwardable ticket.
|
boolean |
isForwarded()
Returns whether to request a forwarded ticket.
|
boolean |
isProxiable()
Returns whether to request a proxiable ticket.
|
boolean |
isProxy()
Returns whether to request a proxy ticket.
|
boolean |
isRenewableOk()
Returns whether renewable tickets are OK.
|
boolean |
isUsePaEncTimestamp()
Returns whether pre-authentication by encrypted timestamp is to be performed.
|
void |
setAllowedClockSkew(long allowedClockSkew) |
void |
setAllowPostdate(boolean isAllowPostdate)
Sets whether postdating is allowed.
|
void |
setClientAddresses(Set<InetAddress> clientAddresses)
Sets the client addresses.
|
void |
setEncryptionTypes(Set<EncryptionType> encryptionTypes) |
void |
setForwardable(boolean isForwardable)
Sets whether to request a forwardable ticket.
|
void |
setForwarded(boolean isForwarded)
Sets whether to request a forwarded ticket.
|
void |
setLifeTime(long lifeTime)
Requests a ticket with the specified lifetime.
|
void |
setProxiable(boolean isProxiable)
Sets whether to request a proxiable ticket.
|
void |
setProxy(boolean isProxy)
Sets whether to request a proxy ticket.
|
void |
setRenewableLifetime(long renewableLifetime)
Requests a ticket with the specified total lifetime.
|
void |
setRenewableOk(boolean isRenewableOk)
Sets whether renewable tickets are OK.
|
void |
setStartTime(Date startTime)
Request a postdated ticket, valid starting at the specified start time.
|
void |
setUdpPreferenceLimit(int udpPreferenceLimit)
Default is UDP.
|
void |
setUsePaEncTimestamp(boolean usePaEncTimestamp) |
public static final int MINUTE
public static final int DAY
public static final int WEEK
public ClientRequestOptions()
public long getAllowedClockSkew()
public void setAllowedClockSkew(long allowedClockSkew)
allowedClockSkew
- The allowedClockSkew to set.public boolean isUsePaEncTimestamp()
public void setUsePaEncTimestamp(boolean usePaEncTimestamp)
usePaEncTimestamp
- Whether to use encrypted timestamp pre-authentication.public int getUdpPreferenceLimit()
public void setUdpPreferenceLimit(int udpPreferenceLimit)
udpPreferenceLimit
- public Date getStartTime()
public void setStartTime(Date startTime)
startTime
- public boolean isForwardable()
public void setForwardable(boolean isForwardable)
isForwardable
- public boolean isForwarded()
public void setForwarded(boolean isForwarded)
isForwarded
- public boolean isProxiable()
public void setProxiable(boolean isProxiable)
isProxiable
- public boolean isProxy()
public void setProxy(boolean isProxy)
isProxy
- public long getLifeTime()
public void setLifeTime(long lifeTime)
lifeTime
- The lifetime to set.public long getRenewableLifetime()
public void setRenewableLifetime(long renewableLifetime)
renewableLifetime
- The renewable lifetime to set.public Set<EncryptionType> getEncryptionTypes()
public void setEncryptionTypes(Set<EncryptionType> encryptionTypes)
encryptionTypes
- The encryption types to set.public Set<InetAddress> getClientAddresses()
public void setClientAddresses(Set<InetAddress> clientAddresses)
clientAddresses
- public boolean isAllowPostdate()
public void setAllowPostdate(boolean isAllowPostdate)
isAllowPostdate
- Whether postdating is allowed.public boolean isRenewableOk()
public void setRenewableOk(boolean isRenewableOk)
isRenewableOk
- Whether renewable tickets are OK.Copyright © 2003-2014 The Apache Software Foundation. All Rights Reserved.