Package org.pgpainless.algorithm
Class RevocationState
- java.lang.Object
-
- org.pgpainless.algorithm.RevocationState
-
- All Implemented Interfaces:
Comparable<RevocationState>
public final class RevocationState extends Object implements Comparable<RevocationState>
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description intcompareTo(RevocationState o)booleanequals(Object obj)DategetDate()RevocationStateTypegetType()static RevocationStatehardRevoked()inthashCode()booleanisHardRevocation()booleanisNotRevoked()booleanisSoftRevocation()static RevocationStatenotRevoked()static RevocationStatesoftRevoked(Date date)StringtoString()
-
-
-
Method Detail
-
notRevoked
public static RevocationState notRevoked()
-
softRevoked
public static RevocationState softRevoked(@Nonnull Date date)
-
hardRevoked
public static RevocationState hardRevoked()
-
getType
public RevocationStateType getType()
-
getDate
@Nonnull public Date getDate()
-
isHardRevocation
public boolean isHardRevocation()
-
isSoftRevocation
public boolean isSoftRevocation()
-
isNotRevoked
public boolean isNotRevoked()
-
compareTo
public int compareTo(@Nonnull RevocationState o)- Specified by:
compareToin interfaceComparable<RevocationState>
-
-