Class ACGenerationParams.Builder
- java.lang.Object
-
- org.italiangrid.voms.request.impl.ACGenerationParams.Builder
-
- Enclosing class:
- ACGenerationParams
public static class ACGenerationParams.Builder extends java.lang.Object
Builder class for constructingACGenerationParams
instances.
-
-
Field Summary
Fields Modifier and Type Field Description (package private) java.util.List<java.lang.String>
fqans
(package private) java.util.List<VOMSGenericAttribute>
gas
(package private) java.lang.String
host
(package private) java.util.Date
notAfter
(package private) java.util.Date
notBefore
(package private) int
port
(package private) java.math.BigInteger
serialNo
(package private) java.lang.String
vo
-
Constructor Summary
Constructors Constructor Description Builder()
Default constructor initializing lists.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ACGenerationParams
build()
Builds theACGenerationParams
instance.ACGenerationParams.Builder
fqan(java.lang.String fqan)
Adds a Fully Qualified Attribute Name.ACGenerationParams.Builder
ga(java.lang.String name, java.lang.String value, java.lang.String context)
Adds a Generic Attribute.ACGenerationParams.Builder
host(java.lang.String host)
Sets the host.ACGenerationParams.Builder
notAfter(java.util.Date notAfter)
Sets the not-after validity time.ACGenerationParams.Builder
notBefore(java.util.Date notBefore)
Sets the not-before validity time.ACGenerationParams.Builder
port(int port)
Sets the port.ACGenerationParams.Builder
serialNo(long serialNo)
Sets the serial number.ACGenerationParams.Builder
vo(java.lang.String vo)
Sets the VO.
-
-
-
Field Detail
-
vo
java.lang.String vo
-
fqans
java.util.List<java.lang.String> fqans
-
gas
java.util.List<VOMSGenericAttribute> gas
-
host
java.lang.String host
-
port
int port
-
notBefore
java.util.Date notBefore
-
notAfter
java.util.Date notAfter
-
serialNo
java.math.BigInteger serialNo
-
-
Method Detail
-
vo
public ACGenerationParams.Builder vo(java.lang.String vo)
Sets the VO.- Parameters:
vo
- the Virtual Organization name- Returns:
- the Builder instance
-
fqan
public ACGenerationParams.Builder fqan(java.lang.String fqan)
Adds a Fully Qualified Attribute Name.- Parameters:
fqan
- the FQAN to add- Returns:
- the Builder instance
-
ga
public ACGenerationParams.Builder ga(java.lang.String name, java.lang.String value, java.lang.String context)
Adds a Generic Attribute.- Parameters:
name
- the attribute namevalue
- the attribute valuecontext
- the attribute context- Returns:
- the Builder instance
-
host
public ACGenerationParams.Builder host(java.lang.String host)
Sets the host.- Parameters:
host
- the host- Returns:
- the Builder instance
-
port
public ACGenerationParams.Builder port(int port)
Sets the port.- Parameters:
port
- the port number- Returns:
- the Builder instance
-
notBefore
public ACGenerationParams.Builder notBefore(java.util.Date notBefore)
Sets the not-before validity time.- Parameters:
notBefore
- the start of the validity period- Returns:
- the Builder instance
-
notAfter
public ACGenerationParams.Builder notAfter(java.util.Date notAfter)
Sets the not-after validity time.- Parameters:
notAfter
- the end of the validity period- Returns:
- the Builder instance
-
serialNo
public ACGenerationParams.Builder serialNo(long serialNo)
Sets the serial number.- Parameters:
serialNo
- the serial number- Returns:
- the Builder instance
-
build
public ACGenerationParams build()
Builds theACGenerationParams
instance.- Returns:
- a new ACGenerationParams object
-
-