Class ServiceProviderToken.Session.Builder
- java.lang.Object
-
- com.atlassian.bitbucket.jenkins.internal.applink.oauth.serviceprovider.token.ServiceProviderToken.Session.Builder
-
- Enclosing class:
- ServiceProviderToken.Session
public static final class ServiceProviderToken.Session.Builder extends Object
Builder for creating session instances.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ServiceProviderToken.Session
build()
ServiceProviderToken.Session.Builder
creationTime(long creationTime)
Set the time the session was originally created and return this builder.ServiceProviderToken.Session.Builder
lastRenewalTime(long lastRenewalTime)
Set the last time the session was renewed and return this builder.ServiceProviderToken.Session.Builder
timeToLive(long timeToLive)
Sets the length of time the session is valid for and returns this builder.
-
-
-
Method Detail
-
creationTime
public ServiceProviderToken.Session.Builder creationTime(long creationTime)
Set the time the session was originally created and return this builder.- Parameters:
creationTime
- time the session was originally created- Returns:
- this builder
-
lastRenewalTime
public ServiceProviderToken.Session.Builder lastRenewalTime(long lastRenewalTime)
Set the last time the session was renewed and return this builder.- Parameters:
lastRenewalTime
- last time the session was renewed- Returns:
- this builder
-
timeToLive
public ServiceProviderToken.Session.Builder timeToLive(long timeToLive)
Sets the length of time the session is valid for and returns this builder.- Parameters:
timeToLive
- length of time the session is valid for- Returns:
- this builder
-
build
public ServiceProviderToken.Session build()
- Returns:
- new session instance
-
-