/** * Create a new authentication context for this security domain which can be used to carry out a single authentication * operation. * * Calling with enabled security manager requires {@code createServerAuthenticationContext} {@link ElytronPermission}. * * @param mechanismConfigurationSelector the selector to use to obtain the mechanism configuration * @return the new authentication context */ public ServerAuthenticationContext createNewAuthenticationContext(MechanismConfigurationSelector mechanismConfigurationSelector) { final SecurityManager sm = System.getSecurityManager(); if (sm != null) { sm.checkPermission(CREATE_AUTH_CONTEXT); } return new ServerAuthenticationContext(this, mechanismConfigurationSelector); }
ServerAuthenticationContext createNewAuthenticationContext(SecurityIdentity capturedIdentity, MechanismConfigurationSelector mechanismConfigurationSelector) { assert capturedIdentity.getSecurityDomain() == this; return new ServerAuthenticationContext(capturedIdentity, mechanismConfigurationSelector); }
/** * Create a new authentication context for this security domain which can be used to carry out a single authentication * operation. * * Calling with enabled security manager requires {@code createServerAuthenticationContext} {@link ElytronPermission}. * * @return the new authentication context */ public ServerAuthenticationContext createNewAuthenticationContext() { final SecurityManager sm = System.getSecurityManager(); if (sm != null) { sm.checkPermission(CREATE_AUTH_CONTEXT); } return new ServerAuthenticationContext(this, MechanismConfigurationSelector.constantSelector(MechanismConfiguration.EMPTY)); }
public M createMechanism(final String name, final UnaryOperator<F> factoryTransformation) throws E { return doCreate(name, new ServerAuthenticationContext(securityDomain, mechanismConfigurationSelector).createCallbackHandler(), factoryTransformation); }
ServerAuthenticationContext serverAuthenticationContext = new ServerAuthenticationContext(this, MechanismConfigurationSelector.constantSelector(MechanismConfiguration.EMPTY)); if (principal != null) serverAuthenticationContext.setAuthenticationPrincipal(principal); if (serverAuthenticationContext.verifyEvidence(evidence)) {
/** * Create a new authentication context for this security domain which can be used to carry out a single authentication * operation. * * Calling with enabled security manager requires {@code createServerAuthenticationContext} {@link ElytronPermission}. * * @param mechanismConfigurationSelector the selector to use to obtain the mechanism configuration * @return the new authentication context */ public ServerAuthenticationContext createNewAuthenticationContext(MechanismConfigurationSelector mechanismConfigurationSelector) { final SecurityManager sm = System.getSecurityManager(); if (sm != null) { sm.checkPermission(CREATE_AUTH_CONTEXT); } return new ServerAuthenticationContext(this, mechanismConfigurationSelector); }
/** * Create a new authentication context for this security domain which can be used to carry out a single authentication * operation. * * Calling with enabled security manager requires {@code createServerAuthenticationContext} {@link ElytronPermission}. * * @param mechanismConfigurationSelector the selector to use to obtain the mechanism configuration * @return the new authentication context */ public ServerAuthenticationContext createNewAuthenticationContext(MechanismConfigurationSelector mechanismConfigurationSelector) { final SecurityManager sm = System.getSecurityManager(); if (sm != null) { sm.checkPermission(CREATE_AUTH_CONTEXT); } return new ServerAuthenticationContext(this, mechanismConfigurationSelector); }
/** * Create a new authentication context for this security domain which can be used to carry out a single authentication * operation. * * Calling with enabled security manager requires {@code createServerAuthenticationContext} {@link ElytronPermission}. * * @param mechanismConfigurationSelector the selector to use to obtain the mechanism configuration * @return the new authentication context */ public ServerAuthenticationContext createNewAuthenticationContext(MechanismConfigurationSelector mechanismConfigurationSelector) { final SecurityManager sm = System.getSecurityManager(); if (sm != null) { sm.checkPermission(CREATE_AUTH_CONTEXT); } return new ServerAuthenticationContext(this, mechanismConfigurationSelector); }
ServerAuthenticationContext createNewAuthenticationContext(SecurityIdentity capturedIdentity, MechanismConfigurationSelector mechanismConfigurationSelector) { assert capturedIdentity.getSecurityDomain() == this; return new ServerAuthenticationContext(capturedIdentity, mechanismConfigurationSelector); }
ServerAuthenticationContext createNewAuthenticationContext(SecurityIdentity capturedIdentity, MechanismConfigurationSelector mechanismConfigurationSelector) { assert capturedIdentity.getSecurityDomain() == this; return new ServerAuthenticationContext(capturedIdentity, mechanismConfigurationSelector); }
ServerAuthenticationContext createNewAuthenticationContext(SecurityIdentity capturedIdentity, MechanismConfigurationSelector mechanismConfigurationSelector) { assert capturedIdentity.getSecurityDomain() == this; return new ServerAuthenticationContext(capturedIdentity, mechanismConfigurationSelector); }
/** * Create a new authentication context for this security domain which can be used to carry out a single authentication * operation. * * Calling with enabled security manager requires {@code createServerAuthenticationContext} {@link ElytronPermission}. * * @return the new authentication context */ public ServerAuthenticationContext createNewAuthenticationContext() { final SecurityManager sm = System.getSecurityManager(); if (sm != null) { sm.checkPermission(CREATE_AUTH_CONTEXT); } return new ServerAuthenticationContext(this, MechanismConfigurationSelector.constantSelector(MechanismConfiguration.EMPTY)); }
/** * Create a new authentication context for this security domain which can be used to carry out a single authentication * operation. * * Calling with enabled security manager requires {@code createServerAuthenticationContext} {@link ElytronPermission}. * * @return the new authentication context */ public ServerAuthenticationContext createNewAuthenticationContext() { final SecurityManager sm = System.getSecurityManager(); if (sm != null) { sm.checkPermission(CREATE_AUTH_CONTEXT); } return new ServerAuthenticationContext(this, MechanismConfigurationSelector.constantSelector(MechanismConfiguration.EMPTY)); }
/** * Create a new authentication context for this security domain which can be used to carry out a single authentication * operation. * * Calling with enabled security manager requires {@code createServerAuthenticationContext} {@link ElytronPermission}. * * @return the new authentication context */ public ServerAuthenticationContext createNewAuthenticationContext() { final SecurityManager sm = System.getSecurityManager(); if (sm != null) { sm.checkPermission(CREATE_AUTH_CONTEXT); } return new ServerAuthenticationContext(this, MechanismConfigurationSelector.constantSelector(MechanismConfiguration.EMPTY)); }
public M createMechanism(final String name, final UnaryOperator<F> factoryTransformation) throws E { return doCreate(name, new ServerAuthenticationContext(securityDomain, mechanismConfigurationSelector).createCallbackHandler(), factoryTransformation); }
public M createMechanism(final String name, final UnaryOperator<F> factoryTransformation) throws E { return doCreate(name, new ServerAuthenticationContext(securityDomain, mechanismConfigurationSelector).createCallbackHandler(), factoryTransformation); }
public M createMechanism(final String name, final UnaryOperator<F> factoryTransformation) throws E { return doCreate(name, new ServerAuthenticationContext(securityDomain, mechanismConfigurationSelector).createCallbackHandler(), factoryTransformation); }
ServerAuthenticationContext serverAuthenticationContext = new ServerAuthenticationContext(this, MechanismConfigurationSelector.constantSelector(MechanismConfiguration.EMPTY)); if (principal != null) serverAuthenticationContext.setAuthenticationPrincipal(principal); if (serverAuthenticationContext.verifyEvidence(evidence)) {
ServerAuthenticationContext serverAuthenticationContext = new ServerAuthenticationContext(this, MechanismConfigurationSelector.constantSelector(MechanismConfiguration.EMPTY)); if (principal != null) serverAuthenticationContext.setAuthenticationPrincipal(principal); if (serverAuthenticationContext.verifyEvidence(evidence)) {
ServerAuthenticationContext serverAuthenticationContext = new ServerAuthenticationContext(this, MechanismConfigurationSelector.constantSelector(MechanismConfiguration.EMPTY)); if (principal != null) serverAuthenticationContext.setAuthenticationPrincipal(principal); if (serverAuthenticationContext.verifyEvidence(evidence)) {