if (sasMeta == null || sasMeta.getCallerPropagation().equals(IORSASContextMetaData.CALLER_PROPAGATION_NONE)) { context = new SAS_ContextSec((short) support, (short) require, privilAuth, supNamMechs, supIdenTypes); } else {
final IORSecurityConfigMetaData securityConfigMetaData = new IORSecurityConfigMetaData(); final IORSASContextMetaData sasContextMetaData = new IORSASContextMetaData(); sasContextMetaData.setCallerPropagation(IIOPRootDefinition.CALLER_PROPAGATION.resolveModelAttribute(context, resourceModel).asString()); securityConfigMetaData.setSasContext(sasContextMetaData);
/** * <p> * Builds a {@code IORSASContextMetaData} using the specified {@code OperationContext} and {@code ModelNode}. * </p> * * @param context a reference to the {@code OperationContext}. * @param model a {@code ModelNode} containing the configured secure attribute service (SAS) metadata. * @return the constructed {@code IORSASContextMetaData} or {@code null} if the specified model is undefined. * @throws OperationFailedException if an error occurs while creating the transport metadata, */ protected IORSASContextMetaData getIORSASContextMetaData(final OperationContext context, final ModelNode model) throws OperationFailedException { if (!model.isDefined()) return null; IORSASContextMetaData metaData = new IORSASContextMetaData(); metaData.setCallerPropagation(CALLER_PROPAGATION.resolveModelAttribute(context, model).asString()); return metaData; } }
/** * Create a new SasContext. * * @param sasContext the delegate */ private SasContext(IORSASContextMetaData sasContext) { if (sasContext == null) throw new IllegalArgumentException("Null sasContext"); callerPropagation = sasContext.getCallerPropagation(); }
final IORSecurityConfigMetaData securityConfigMetaData = new IORSecurityConfigMetaData(); final IORSASContextMetaData sasContextMetaData = new IORSASContextMetaData(); sasContextMetaData.setCallerPropagation(IIOPRootDefinition.CALLER_PROPAGATION.resolveModelAttribute(context, resourceModel).asString()); securityConfigMetaData.setSasContext(sasContextMetaData);
/** * Create a new SasContext. * * @param sasContext the delegate */ private SasContext(IORSASContextMetaData sasContext) { if (sasContext == null) throw new IllegalArgumentException("Null sasContext"); callerPropagation = sasContext.getCallerPropagation(); }
final IORSecurityConfigMetaData securityConfigMetaData = new IORSecurityConfigMetaData(); final IORSASContextMetaData sasContextMetaData = new IORSASContextMetaData(); sasContextMetaData.setCallerPropagation(IIOPRootDefinition.CALLER_PROPAGATION.resolveModelAttribute(context, resourceModel).asString()); securityConfigMetaData.setSasContext(sasContextMetaData);
if (sasMeta == null || sasMeta.getCallerPropagation().equals(IORSASContextMetaData.CALLER_PROPAGATION_NONE)) { context = new SAS_ContextSec((short) support, (short) require, privilAuth, supNamMechs, supIdenTypes); } else {
if (sasMeta == null || sasMeta.getCallerPropagation().equals(IORSASContextMetaData.CALLER_PROPAGATION_NONE)) { context = new SAS_ContextSec((short) support, (short) require, privilAuth, supNamMechs, supIdenTypes); } else {