public class CertificatesFactory
extends java.lang.Object
Title: Service Event Fabric Core
Description: CertificatesFactory contains methods to manage certificates directory.
Copyright: Copyright (c) 2012
Company: StreamScape Technologies
Modifier and Type | Class and Description |
---|---|
static class |
CertificatesFactory.StoreType |
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
CERTIFICATES_NAMESPACE |
static java.lang.String |
KEYSTORE_EXT |
static java.lang.String |
TRUSTSTORE_EXT |
Constructor and Description |
---|
CertificatesFactory() |
Modifier and Type | Method and Description |
---|---|
static byte[] |
getKeyStoreFor(com.streamscape.sef.network.mf.admin.AbstractAcceptor acceptor,
RuntimeContext context)
Returns key store file for the specified acceptor if key store exists, throws an exception otherwise.
|
static java.lang.String |
getKeyStorePathFor(Acceptor acceptor,
RuntimeContext context) |
static java.lang.String |
getKeyStorePathFor(Acceptor acceptor,
RuntimeContext context,
boolean nullIfNotExists) |
static byte[] |
getTrustStoreFor(com.streamscape.sef.network.mf.admin.AbstractAcceptor acceptor,
RuntimeContext context)
Returns trust store file for the specified acceptor if trust store exists,
null |
static java.lang.String |
getTrustStorePathFor(Acceptor acceptor,
RuntimeContext context) |
static java.lang.String |
getTrustStorePathFor(Acceptor acceptor,
RuntimeContext context,
boolean nullIfNotExists) |
static void |
init(RuntimeContext context) |
public static final java.lang.String CERTIFICATES_NAMESPACE
public static final java.lang.String KEYSTORE_EXT
public static final java.lang.String TRUSTSTORE_EXT
public static void init(RuntimeContext context) throws RepositoryAccessorException, RepositoryException, java.lang.RuntimeException
RepositoryAccessorException
RepositoryException
java.lang.RuntimeException
public static byte[] getKeyStoreFor(com.streamscape.sef.network.mf.admin.AbstractAcceptor acceptor, RuntimeContext context) throws java.lang.Exception
acceptor
- the specified acceptor.java.lang.Exception
public static byte[] getTrustStoreFor(com.streamscape.sef.network.mf.admin.AbstractAcceptor acceptor, RuntimeContext context) throws java.lang.Exception
null otherwise.
acceptor
- the specified acceptor.null otherwise.
java.lang.Exception
public static java.lang.String getKeyStorePathFor(Acceptor acceptor, RuntimeContext context)
public static java.lang.String getKeyStorePathFor(Acceptor acceptor, RuntimeContext context, boolean nullIfNotExists)
public static java.lang.String getTrustStorePathFor(Acceptor acceptor, RuntimeContext context)
public static java.lang.String getTrustStorePathFor(Acceptor acceptor, RuntimeContext context, boolean nullIfNotExists)
Copyright © 2015-2024 StreamScape Technologies. All rights reserved.