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