Class ACGenerationParams.Builder
- java.lang.Object
-
- org.italiangrid.voms.request.impl.ACGenerationParams.Builder
-
- Enclosing class:
- ACGenerationParams
public static class ACGenerationParams.Builder extends java.lang.ObjectBuilder class for constructingACGenerationParamsinstances.
-
-
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.Stringhost(package private) java.util.DatenotAfter(package private) java.util.DatenotBefore(package private) intport(package private) java.math.BigIntegerserialNo(package private) java.lang.Stringvo
-
Constructor Summary
Constructors Constructor Description Builder()Default constructor initializing lists.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ACGenerationParamsbuild()Builds theACGenerationParamsinstance.ACGenerationParams.Builderfqan(java.lang.String fqan)Adds a Fully Qualified Attribute Name.ACGenerationParams.Builderga(java.lang.String name, java.lang.String value, java.lang.String context)Adds a Generic Attribute.ACGenerationParams.Builderhost(java.lang.String host)Sets the host.ACGenerationParams.BuildernotAfter(java.util.Date notAfter)Sets the not-after validity time.ACGenerationParams.BuildernotBefore(java.util.Date notBefore)Sets the not-before validity time.ACGenerationParams.Builderport(int port)Sets the port.ACGenerationParams.BuilderserialNo(long serialNo)Sets the serial number.ACGenerationParams.Buildervo(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 theACGenerationParamsinstance.- Returns:
- a new ACGenerationParams object
-
-