public abstract class BaseKeyStoreFactory extends Object implements KeyStoreFactory
Modifier and Type | Class and Description |
---|---|
static class |
BaseKeyStoreFactory.Type |
Constructor and Description |
---|
BaseKeyStoreFactory()
creates a new KeyStoreFactory for the default certificate type
ACRAConstants.DEFAULT_CERTIFICATE_TYPE |
BaseKeyStoreFactory(String certificateType)
creates a new KeyStoreFactory with the specified certificate type
|
Modifier and Type | Method and Description |
---|---|
KeyStore |
create(Context context) |
protected abstract InputStream |
getInputStream(Context context) |
protected String |
getKeyStoreType() |
protected char[] |
getPassword() |
protected BaseKeyStoreFactory.Type |
getStreamType() |
public BaseKeyStoreFactory()
ACRAConstants.DEFAULT_CERTIFICATE_TYPE
public BaseKeyStoreFactory(String certificateType)
certificateType
- the certificate type@Nullable protected abstract InputStream getInputStream(@NonNull Context context)
protected String getKeyStoreType()
@NonNull protected BaseKeyStoreFactory.Type getStreamType()
@Nullable protected char[] getPassword()
@Nullable public final KeyStore create(@NonNull Context context)
create
in interface KeyStoreFactory