Class JwtPrivateKeyCreds
- java.lang.Object
-
- org.apache.tika.pipes.fetcher.http.jwt.JwtCreds
-
- org.apache.tika.pipes.fetcher.http.jwt.JwtPrivateKeyCreds
-
public class JwtPrivateKeyCreds extends JwtCreds
-
-
Constructor Summary
Constructors Constructor Description JwtPrivateKeyCreds(PrivateKey privateKey, String issuer, String subject, int expiresInSeconds)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static PrivateKey
convertBase64ToPrivateKey(String privateKeyBase64)
static String
convertPrivateKeyToBase64(PrivateKey privateKey)
PrivateKey
getPrivateKey()
-
Methods inherited from class org.apache.tika.pipes.fetcher.http.jwt.JwtCreds
getExpiresInSeconds, getIssuer, getSubject
-
-
-
-
Constructor Detail
-
JwtPrivateKeyCreds
public JwtPrivateKeyCreds(PrivateKey privateKey, String issuer, String subject, int expiresInSeconds)
-
-
Method Detail
-
getPrivateKey
public PrivateKey getPrivateKey()
-
convertPrivateKeyToBase64
public static String convertPrivateKeyToBase64(PrivateKey privateKey)
-
convertBase64ToPrivateKey
public static PrivateKey convertBase64ToPrivateKey(String privateKeyBase64) throws TikaConfigException
- Throws:
TikaConfigException
-
-