Package org.apache.sling.auth.saml2.sp
Class JksCredentials
- java.lang.Object
-
- org.apache.sling.auth.saml2.sp.JksCredentials
-
- Direct Known Subclasses:
KeyPairCredentials
,VerifySignatureCredentials
public abstract class JksCredentials extends Object
Abstract class that provides a method of opening a keystore
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
JksCredentials()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description protected static KeyStore
getKeyStore(String filePathToJKS, char[] jksPassword)
-
-
-
Method Detail
-
getKeyStore
protected static KeyStore getKeyStore(String filePathToJKS, char[] jksPassword)
- Parameters:
filePathToJKS
- Path to the JKS file. Usually it will be relative to the Sling instances, for example, "./sling/exampleSaml2.jks"jksPassword
- Password for the JKS as a char[]- Returns:
- A Keystore instance or throws an uncaught Runtime exception intending to halt the caller's processes.
-
-