public abstract class ElytronUtil extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
HTTP_SERVER_CAPABILITY |
static String |
JKS |
static String |
OOTB_APPLICATION_DOMAIN |
static String |
OOTB_APPLICATION_HTTP_FACTORY |
static String |
OOTB_MANAGEMENT_HTTP_FACTORY |
static String |
OOTB_MANAGEMENT_SASL_FACTORY |
static String |
PKCS12 |
static String |
SASL_SERVER_CAPABILITY |
static String |
TLS_V1_2 |
public static final String JKS
public static final String PKCS12
public static final String TLS_V1_2
public static String OOTB_MANAGEMENT_SASL_FACTORY
public static String OOTB_MANAGEMENT_HTTP_FACTORY
public static String OOTB_APPLICATION_HTTP_FACTORY
public static String OOTB_APPLICATION_DOMAIN
public static final String SASL_SERVER_CAPABILITY
public static final String HTTP_SERVER_CAPABILITY
public static boolean trustManagerExists(CommandContext ctx, String name) throws IOException, OperationFormatException
IOExceptionOperationFormatExceptionpublic static boolean keyStoreExists(CommandContext ctx, String name) throws OperationFormatException, IOException
OperationFormatExceptionIOExceptionpublic static boolean serverSSLContextExists(CommandContext ctx, String name) throws OperationFormatException, IOException
OperationFormatExceptionIOExceptionpublic static List<String> getKeyStoreNames(ModelControllerClient client)
public static List<String> getSecurityDomainNames(ModelControllerClient client)
public static List<String> getConstantRoleMappers(ModelControllerClient client)
public static ServerSSLContext getServerSSLContext(CommandContext context, String sslContextName)
public static KeyStore getKeyStore(CommandContext ctx, String name) throws OperationFormatException, IOException
OperationFormatExceptionIOExceptionpublic static boolean isElytronSupported(CommandContext commandContext) throws IOException, OperationFormatException
IOExceptionOperationFormatExceptionpublic static boolean isKeyStoreManagementSupported(CommandContext commandContext) throws IOException, OperationFormatException
IOExceptionOperationFormatExceptionpublic static org.jboss.dmr.ModelNode getAuthFactoryResource(String authFactory, AuthFactorySpec spec, CommandContext ctx)
public static org.jboss.dmr.ModelNode reorderSASLFactory(CommandContext ctx, List<String> order, String factoryName) throws Exception
Exceptionpublic static AuthFactory findMatchingAuthFactory(AuthMechanism newMechanism, AuthFactorySpec spec, CommandContext ctx) throws OperationFormatException, IOException
OperationFormatExceptionIOExceptionpublic static AuthFactory getAuthFactory(String authFactory, AuthFactorySpec spec, CommandContext ctx)
public static AuthFactory getAuthFactory(org.jboss.dmr.ModelNode mn, String authFactory, AuthFactorySpec spec, CommandContext ctx)
public static String findMatchingUsersPropertiesRealm(CommandContext ctx, PropertiesRealmConfiguration config) throws Exception
Exceptionpublic static boolean serverPropertiesRealmExists(CommandContext ctx, String name) throws OperationFormatException, IOException
OperationFormatExceptionIOExceptionpublic static org.jboss.dmr.ModelNode addUsersPropertiesRealm(CommandContext ctx, String realmName, PropertiesRealmConfiguration config) throws Exception
Exceptionpublic static String findKeyStoreRealm(CommandContext ctx, String trustStore) throws IOException, OperationFormatException
IOExceptionOperationFormatExceptionpublic static org.jboss.dmr.ModelNode addKeyStoreRealm(CommandContext ctx, String ksRealmName, String keyStore) throws OperationFormatException
OperationFormatExceptionpublic static String findConstantRealmMapper(CommandContext ctx, String realmName) throws IOException, OperationFormatException
IOExceptionOperationFormatExceptionpublic static org.jboss.dmr.ModelNode addConstantRealmMapper(CommandContext ctx, String realmName) throws OperationFormatException, IOException
OperationFormatExceptionIOExceptionpublic static boolean securityDomainExists(CommandContext ctx, String name) throws OperationFormatException, IOException
OperationFormatExceptionIOExceptionpublic static org.jboss.dmr.ModelNode addSecurityDomain(CommandContext ctx, Realm realm, String newSecurityDomain) throws OperationFormatException
OperationFormatExceptionpublic static boolean factoryExists(CommandContext ctx, String name, AuthFactorySpec spec) throws OperationFormatException, IOException
OperationFormatExceptionIOExceptionpublic static org.jboss.dmr.ModelNode addAuthFactory(CommandContext ctx, SecurityDomain securityDomain, String newAuthFactoryName, AuthFactorySpec spec) throws OperationFormatException
OperationFormatExceptionpublic static void addAuthMechanism(CommandContext ctx, AuthFactory authFactory, AuthMechanism mechanism, org.jboss.dmr.ModelNode steps) throws OperationFormatException
OperationFormatExceptionpublic static void addRealm(CommandContext ctx, SecurityDomain securityDomain, Realm realm, org.jboss.dmr.ModelNode steps) throws OperationFormatException
OperationFormatExceptionpublic static org.jboss.dmr.ModelNode getSecurityDomainResource(SecurityDomain domain, CommandContext ctx)
public static List<String> getMechanisms(CommandContext ctx, AuthFactorySpec spec) throws OperationFormatException, IOException
OperationFormatExceptionIOExceptionpublic static List<String> getAvailableMechanisms(CommandContext ctx, AuthFactorySpec spec) throws OperationFormatException, IOException
OperationFormatExceptionIOExceptionpublic static List<String> getFileSystemRealmNames(ModelControllerClient client)
public static List<String> getPropertiesRealmNames(ModelControllerClient client)
public static List<String> getKeyStoreRealmNames(ModelControllerClient client)
public static List<String> getSimpleDecoderNames(ModelControllerClient client)
public static boolean localUserExists(CommandContext ctx) throws IOException, OperationFormatException
IOExceptionOperationFormatExceptionpublic static org.jboss.dmr.ModelNode removeMechanisms(CommandContext ctx, org.jboss.dmr.ModelNode factory, String factoryName, AuthFactorySpec spec, Set<String> toRemove) throws Exception
Exceptionpublic static List<String> getMechanisms(CommandContext ctx, String factoryName, AuthFactorySpec spec) throws Exception
Exceptionpublic static boolean constantRoleMapperExists(CommandContext ctx, String name) throws OperationFormatException, IOException
OperationFormatExceptionIOExceptionCopyright © 2018 JBoss by Red Hat. All rights reserved.