/** * Protected constructor, must use TokenGeneratorHandlerFactory */ protected OpenIDTokenGeneratorHandler() { this.log.trace("TokenGeneratorHandler::TokenGeneratorHandler"); }
/** * Protected constructor, must use TokenGeneratorHandlerFactory */ protected OpenIDTokenGeneratorHandler() { this.log.trace("TokenGeneratorHandler::TokenGeneratorHandler"); }
public void configure (final Map mapGlobalSettings, final String strComponentName, final Map mapComponentSettings) { this.log.trace("TokenGeneratorHandler::initialize"); String tableName = (String) mapComponentSettings.get("AssocTableName"); JdbcServerAssociationStore privateAssociations = new JdbcServerAssociationStore(tableName); boolean status = true; try { InitialContext cxt = new InitialContext(); String dataSourceJndi = (String) mapComponentSettings.get("AssocDataSource"); DataSource ds = (DataSource) cxt.lookup(dataSourceJndi); privateAssociations.setDataSource(ds); } catch (NamingException e) { log.error("Unable to load JNDI data source from context."); status = false; } _privateAssociations = privateAssociations; java.net.URI opEndpointUri = (java.net.URI) mapComponentSettings.get("OPEndpoint"); _opEndpoint = opEndpointUri != null ? opEndpointUri.toString() : null; _expireIn = (Integer) mapComponentSettings.get("AssocExpiry"); this.bConfigured = status; }
public void configure (final Map mapGlobalSettings, final String strComponentName, final Map mapComponentSettings) { this.log.trace("TokenGeneratorHandler::initialize"); String tableName = (String) mapComponentSettings.get("AssocTableName"); JdbcServerAssociationStore privateAssociations = new JdbcServerAssociationStore(tableName); boolean status = true; try { InitialContext cxt = new InitialContext(); String dataSourceJndi = (String) mapComponentSettings.get("AssocDataSource"); DataSource ds = (DataSource) cxt.lookup(dataSourceJndi); privateAssociations.setDataSource(ds); } catch (NamingException e) { log.error("Unable to load JNDI data source from context."); status = false; } _privateAssociations = privateAssociations; java.net.URI opEndpointUri = (java.net.URI) mapComponentSettings.get("OPEndpoint"); _opEndpoint = opEndpointUri != null ? opEndpointUri.toString() : null; _expireIn = (Integer) mapComponentSettings.get("AssocExpiry"); this.bConfigured = status; }
final ISTSRequest request, final ISTSResponse response) { this.log.trace("TokenGeneratorHandler::invoke: " + strComponentName); this.log.trace("DefaultKeyType: " + uriDefaultKeyType != null ? uriDefaultKeyType.toString() : null); this.log.trace("IncludeBearerSubjectName: " + bIncludeBearerSubjectName != null ? bIncludeBearerSubjectName.toString() : null); this.log.trace("TokenIssuer: " + uriTokenIssuer != null ? uriTokenIssuer.toString() : null); (java.net.URI) mapComponentSettings.get("SubjectNameIdentifierAttribute"); if (null != uriSubjectNameIdentifier) { this.log.trace("SubjectNameIdentifier: " + uriSubjectNameIdentifier != null ? uriSubjectNameIdentifier.toString() : null); (java.net.URI) mapComponentSettings.get("SubjectNameIdentifierFormat"); if (null != uriSubjectNameIdentifierFormat) { this.log.trace("SubjectNameIdentifierFormat: " + uriSubjectNameIdentifierFormat != null ? uriSubjectNameIdentifierFormat.toString() : null); this.log.trace("EncryptToken: " + bEncryptToken != null ? bEncryptToken.toString() : null);
this.log.trace("TokenGeneratorHandler::invoke: " + strComponentName); this.log.trace("DefaultKeyType: " + uriDefaultKeyType != null ? uriDefaultKeyType.toString() : null); this.log.trace("IncludeBearerSubjectName: " + bIncludeBearerSubjectName != null ? bIncludeBearerSubjectName.toString() : null); this.log.trace("TokenIssuer: " + uriTokenIssuer != null ? uriTokenIssuer.toString() : null); (java.net.URI)mapComponentSettings.get("SubjectNameIdentifierAttribute"); if (null != uriSubjectNameIdentifier) this.log.trace("SubjectNameIdentifier: " + uriSubjectNameIdentifier != null ? uriSubjectNameIdentifier.toString() : null); (java.net.URI)mapComponentSettings.get("SubjectNameIdentifierFormat"); if (null != uriSubjectNameIdentifierFormat) this.log.trace("SubjectNameIdentifierFormat: " + uriSubjectNameIdentifierFormat != null ? uriSubjectNameIdentifierFormat.toString() : null); this.log.trace("EncryptToken: " + bEncryptToken != null ? bEncryptToken.toString() : null); this.log.trace("Checking for AppliesTo"); if (appliesToRequest != null)