public void addChild(JASPIAuthenticationInfo authInfo, AuthModuleEntry entry, UnmarshallingContext navigator, String namespaceURI, String localName) { authInfo.add(entry); }
public void addChild(JASPIAuthenticationInfo authInfo, LoginModuleStackHolder lmsHolder, UnmarshallingContext navigator, String namespaceURI, String localName) { authInfo.add(lmsHolder); }
/** * <p> * Overriden to include the stacks of login modules in the merged object. * </p> */ @Override public BaseSecurityInfo<Object> merge(BaseSecurityInfo<Object> bi) { if (bi instanceof JASPIAuthenticationInfo == false) throw new IllegalArgumentException("Base policy does not contain a JASPI authentication configuration"); // merge the auth modules JASPIAuthenticationInfo merged = (JASPIAuthenticationInfo) super.merge(bi); // merge the stacks of login modules JASPIAuthenticationInfo parent = (JASPIAuthenticationInfo) bi; for (LoginModuleStackHolder holder : parent.getLoginModuleStackHolder()) merged.add(holder); for (LoginModuleStackHolder holder : this.getLoginModuleStackHolder()) merged.add(holder); return merged; }
/** * <p> * Overriden to include the stacks of login modules in the merged object. * </p> */ @Override public BaseSecurityInfo<Object> merge(BaseSecurityInfo<Object> bi) { if (bi instanceof JASPIAuthenticationInfo == false) throw PicketBoxMessages.MESSAGES.invalidType(JASPIAuthenticationInfo.class.getName()); // merge the auth modules JASPIAuthenticationInfo merged = (JASPIAuthenticationInfo) super.merge(bi); // merge the stacks of login modules JASPIAuthenticationInfo parent = (JASPIAuthenticationInfo) bi; for (LoginModuleStackHolder holder : parent.getLoginModuleStackHolder()) merged.add(holder); for (LoginModuleStackHolder holder : this.getLoginModuleStackHolder()) merged.add(holder); return merged; }
SecurityActions.addModules(jaspiInfo, authenticationModuleEntries); for (LoginModuleStackHolder holder : this.loginModuleStackMap.values()) jaspiInfo.add(holder); info.setAuthenticationInfo(jaspiInfo);