Class GrantFragment.Grant
java.lang.Object
com.kosdev.kos.commons.util.json.fragments.GrantFragment.Grant
- Enclosing class:
- GrantFragment
Information about a single grant.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionIf set, when the grant becomes inactive.getName()The name of the grant.If set, when the grant becomes active.voidsetEndDate(String endDate) If set, when the grant becomes inactive.voidThe name of the grant.voidsetStartDate(String startDate) If set, when the grant becomes active.
-
Constructor Details
-
Grant
public Grant()
-
-
Method Details
-
getName
The name of the grant. When imported, this will be prefixed by the authority of the KAB that contains this information. For example, if the name of the grant is"test"and the authority used to sign the KAB is"kondra", then the final grant will be"kondra.test". -
getStartDate
If set, when the grant becomes active. Format is ISO-8601 zulu. -
getEndDate
If set, when the grant becomes inactive. Format is ISO-8601 zulu. -
setName
The name of the grant. When imported, this will be prefixed by the authority of the KAB that contains this information. For example, if the name of the grant is"test"and the authority used to sign the KAB is"kondra", then the final grant will be"kondra.test". -
setStartDate
If set, when the grant becomes active. Format is ISO-8601 zulu. -
setEndDate
If set, when the grant becomes inactive. Format is ISO-8601 zulu.
-