Package org.paseto4j.commons
Class PrivateKey
- java.lang.Object
-
- org.paseto4j.commons.Key<PrivateKey>
-
- org.paseto4j.commons.PrivateKey
-
public class PrivateKey extends Key<PrivateKey>
-
-
Constructor Summary
Constructors Constructor Description PrivateKey(byte[] keyMaterial, Version version)Deprecated.PrivateKey(PrivateKey privateKey, Version version)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanisValidFor(Version v, Purpose p)-
Methods inherited from class org.paseto4j.commons.Key
getKey, getMaterial, getVersion, hasLength
-
-
-
-
Constructor Detail
-
PrivateKey
@Deprecated public PrivateKey(byte[] keyMaterial, Version version)
Deprecated.
-
PrivateKey
public PrivateKey(PrivateKey privateKey, Version version)
-
-
Method Detail
-
isValidFor
public boolean isValidFor(Version v, Purpose p)
- Specified by:
isValidForin classKey<PrivateKey>
-
-