Examples of STSType


Examples of org.jboss.identity.federation.bindings.config.STSType

    * Creates an instance of {@code JBossSTSConfiguration} with default configuration values.
    * </p>
    */
   public JBossSTSConfiguration()
   {
      this.delegate = new STSType();
      // set the default values in the delegate.
      this.delegate.setSTSName("JBossSTS");
      this.delegate.setEncryptToken(false);
      this.delegate.setTokenTimeout(3600);
      this.delegate.setRequestHandler("org.jboss.identity.federation.api.wstrust.StandardRequestHandler");
View Full Code Here

Examples of org.jboss.identity.federation.bindings.config.STSType

      try
      {
         String pkgName = "org.jboss.identity.federation.bindings.config";
         InputStream stream = configurationFile.openStream();
         JAXBElement<STSType> element = (JAXBElement<STSType>) JAXBUtil.getUnmarshaller(pkgName).unmarshal(stream);
         STSType stsConfig = element.getValue();
         return new JBossSTSConfiguration(stsConfig);
      }
      catch (Exception e)
      {
         throw new RuntimeException("Error parsing the configuration file:", e);
View Full Code Here

Examples of org.jboss.identity.federation.core.config.STSType

      try
      {
         String pkgName = "org.jboss.identity.federation.core.config";
         InputStream stream = configurationFile.openStream();
         JAXBElement<STSType> element = (JAXBElement<STSType>) JAXBUtil.getUnmarshaller(pkgName).unmarshal(stream);
         STSType stsConfig = element.getValue();
         STSConfiguration configuration = new JBossSTSConfiguration(stsConfig);
         if(logger.isInfoEnabled())
            logger.info("jboss-sts.xml configuration file loaded");
         return configuration;
      }
View Full Code Here

Examples of org.jboss.identity.federation.core.config.STSType

    * Creates an instance of {@code JBossSTSConfiguration} with default configuration values.
    * </p>
    */
   public JBossSTSConfiguration()
   {
      this.delegate = new STSType();
      this.delegate.setRequestHandler("org.jboss.identity.federation.core.wstrust.StandardRequestHandler");
      // TODO: add default token provider classes.
   }
View Full Code Here

Examples of org.jboss.identity.federation.core.config.STSType

      try
      {
         String pkgName = "org.jboss.identity.federation.core.config";
         InputStream stream = configurationFile.openStream();
         JAXBElement<STSType> element = (JAXBElement<STSType>) JAXBUtil.getUnmarshaller(pkgName).unmarshal(stream);
         STSType stsConfig = element.getValue();
         return new JBossSTSConfiguration(stsConfig);
      }
      catch (Exception e)
      {
         throw new RuntimeException("Error parsing the configuration file:", e);
View Full Code Here

Examples of org.jboss.identity.federation.core.config.STSType

    * Creates an instance of {@code JBossSTSConfiguration} with default configuration values.
    * </p>
    */
   public JBossSTSConfiguration()
   {
      this.delegate = new STSType();
      this.delegate.setRequestHandler("org.jboss.identity.federation.core.wstrust.StandardRequestHandler");
      // TODO: add default token provider classes.
   }
View Full Code Here

Examples of org.picketlink.config.federation.STSType

    private static STSType toSAMLConfig(OperationContext context, ModelNode fromModel) throws OperationFailedException {
        int tokenTimeout = SAMLResourceDefinition.TOKEN_TIMEOUT.resolveModelAttribute(context, fromModel).asInt();
        int clockSkew = SAMLResourceDefinition.CLOCK_SKEW.resolveModelAttribute(context, fromModel).asInt();

        STSType stsType = new STSType();

        stsType.setTokenTimeout(tokenTimeout);
        stsType.setClockSkew(clockSkew);

        return stsType;
    }
View Full Code Here

Examples of org.picketlink.config.federation.STSType

    /**
     * <p> Configure the STS Token Providers. </p>
     */
    private void configureTokenProviders() {
        STSType stsType = getFederationService().getValue().getStsType();

        if (stsType != null) {
            int tokenTimeout = stsType.getTokenTimeout();
            int clockSkew = stsType.getClockSkew();

            STSType providerStsType = getPicketLinkType().getStsType();

            providerStsType.setTokenTimeout(tokenTimeout);
            providerStsType.setClockSkew(clockSkew);

            List<TokenProviderType> tokenProviders = providerStsType.getTokenProviders().getTokenProvider();

            for (TokenProviderType tokenProviderType : tokenProviders) {
                if (tokenProviderType.getTokenType().equals(JBossSAMLURIConstants.ASSERTION_NSURI.get())) {
                    KeyValueType keyValueTypeTokenTimeout = new KeyValueType();

View Full Code Here

Examples of org.picketlink.config.federation.STSType

    public C getConfiguration() {
        return (C) getPicketLinkType().getIdpOrSP();
    }

    private STSType createSTSType() {
        STSType stsType = null;

        InputStream stream = null;

        try {
            URL url = getClass().getClassLoader().getResource("core-sts.xml");
View Full Code Here

Examples of org.picketlink.identity.federation.core.config.STSType

                SAMLConfigParser samlConfigParser = new SAMLConfigParser();
                Handlers handlers = (Handlers) samlConfigParser.parse(xmlEventReader);
                picketLinkType.setHandlers(handlers);
            } else if (STSConfigParser.ROOT_ELEMENT.equals(tag)) {
                STSConfigParser samlConfigParser = new STSConfigParser();
                STSType sts = (STSType) samlConfigParser.parse(xmlEventReader);
                picketLinkType.setStsType(sts);
            }
            startElement = StaxParserUtil.peekNextStartElement(xmlEventReader);
            if (startElement == null)
                break;
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.