Examples of KeyDescriptorType


Examples of org.jboss.identity.federation.saml.v2.metadata.KeyDescriptorType

          
           Certificate cert = keyManager.getCertificate(signingAlias);
           KeyInfoType keyInfo = KeyUtil.getKeyInfo(cert);
          
           //TODO: Assume just signing key for now
           KeyDescriptorType keyDescriptor = KeyDescriptorMetaDataBuilder.createKeyDescriptor(keyInfo,
                 null, 0, true, false);
          
           updateKeyDescriptor(metadata, keyDescriptor);
          
           //encryption
View Full Code Here

Examples of org.jboss.identity.federation.saml.v2.metadata.KeyDescriptorType

     
      if(isSigningKey == isEncryptionKey)
         throw new IllegalArgumentException("Only one of isSigningKey " +
             "and isEncryptionKey should be true");
     
      KeyDescriptorType keyDescriptor = getObjectFactory().createKeyDescriptorType();
     
      if(algorithm != null && algorithm.length() > 0)
      {
         EncryptionMethodType encryptionMethod = new EncryptionMethodType();
         encryptionMethod.setAlgorithm(algorithm);
        
         encryptionMethod.getContent().add(BigInteger.valueOf(keySize));
        
         keyDescriptor.getEncryptionMethod().add(encryptionMethod)
      }
     
      if(isSigningKey)
         keyDescriptor.setUse(KeyTypes.SIGNING);
      if(isEncryptionKey)
         keyDescriptor.setUse(KeyTypes.ENCRYPTION);
     
      keyDescriptor.setKeyInfo(keyInfo);
     
      return keyDescriptor;
   }
View Full Code Here

Examples of org.jboss.identity.federation.saml.v2.metadata.KeyDescriptorType

         Certificate cert = keyManager.getCertificate(signingAlias);
         KeyInfoType keyInfo = KeyUtil.getKeyInfo(cert);

         //TODO: Assume just signing key for now
         KeyDescriptorType keyDescriptor = KeyDescriptorMetaDataBuilder.createKeyDescriptor(keyInfo,
               null, 0, true, false);

         updateKeyDescriptor(metadata, keyDescriptor);

         //encryption
View Full Code Here

Examples of org.jboss.identity.federation.saml.v2.metadata.KeyDescriptorType

         Certificate cert = keyManager.getCertificate(signingAlias);
         KeyInfoType keyInfo = KeyUtil.getKeyInfo(cert);

         //TODO: Assume just signing key for now
         KeyDescriptorType keyDescriptor = KeyDescriptorMetaDataBuilder.createKeyDescriptor(keyInfo,
               null, 0, true, false);

         updateKeyDescriptor(metadata, keyDescriptor);

         //encryption
View Full Code Here

Examples of org.jboss.seam.security.external.jaxb.samlv2.metadata.KeyDescriptorType

        X509Data.getX509IssuerSerialOrX509SKIOrX509SubjectName().add(X509Certificate);

        KeyInfoType keyInfo = signatureFactory.createKeyInfoType();
        keyInfo.getContent().add(signatureFactory.createX509Data(X509Data));

        KeyDescriptorType keyDescriptor = metaDataFactory.createKeyDescriptorType();
        keyDescriptor.setUse(KeyTypes.SIGNING);
        keyDescriptor.setKeyInfo(keyInfo);

        ssoDescriptor.getKeyDescriptor().add(keyDescriptor);
    }
View Full Code Here

Examples of org.jboss.seam.security.external.jaxb.samlv2.metadata.KeyDescriptorType

      X509Data.getX509IssuerSerialOrX509SKIOrX509SubjectName().add(X509Certificate);

      KeyInfoType keyInfo = signatureFactory.createKeyInfoType();
      keyInfo.getContent().add(signatureFactory.createX509Data(X509Data));

      KeyDescriptorType keyDescriptor = metaDataFactory.createKeyDescriptorType();
      keyDescriptor.setUse(KeyTypes.SIGNING);
      keyDescriptor.setKeyInfo(keyInfo);

      ssoDescriptor.getKeyDescriptor().add(keyDescriptor);
   }
View Full Code Here

Examples of org.picketlink.identity.federation.saml.v2.metadata.KeyDescriptorType

    public void testCreateKeyDescriptor() {
        Element keyInfo = KeyInfoBuilder.createKeyInfo("testKey");

        String algorithm = "http://www.w3.org/2001/04/xmlenc#rsa-1_5";

        KeyDescriptorType keyDescriptor = KeyDescriptorMetaDataBuilder
                .createKeyDescriptor(keyInfo, algorithm, 256, false, true);
        assertNotNull("Key Descriptor not null", keyDescriptor);
    }
View Full Code Here

Examples of org.picketlink.identity.federation.saml.v2.metadata.KeyDescriptorType

        // TODO: improve keyinfo
        Element keyInfo = KeyInfoBuilder.createKeyInfo(id);

        String algorithm = null;

        KeyDescriptorType keyDescriptorType = KeyDescriptorMetaDataBuilder.createKeyDescriptor(keyInfo, algorithm, 0, true,
                false);

        List<AttributeType> attributes = new ArrayList<AttributeType>();

        EndpointType sloEndPoint = MetaDataBuilder.createEndpoint(JBossSAMLURIConstants.METADATA_HTTP_REDIRECT_BINDING.get(),
View Full Code Here

Examples of org.picketlink.identity.federation.saml.v2.metadata.KeyDescriptorType

        // TODO: improve keyinfo
        Element keyInfo = KeyInfoBuilder.createKeyInfo(id);

        String algorithm = null;

        KeyDescriptorType keyDescriptorType = KeyDescriptorMetaDataBuilder.createKeyDescriptor(keyInfo, algorithm, 0, true,
                false);

        List<AttributeType> attributes = new ArrayList<AttributeType>();

        EndpointType ssoEndPoint = MetaDataBuilder.createEndpoint(JBossSAMLURIConstants.METADATA_HTTP_REDIRECT_BINDING.get(),
View Full Code Here

Examples of org.picketlink.identity.federation.saml.v2.metadata.KeyDescriptorType

        List<AttributeType> attributes = new ArrayList<AttributeType>();
        attributes.add(attributeType);

        URI test = URI.create("http://test");
        EndpointType sloEndPoint = new EndpointType(test, test);
        KeyDescriptorType keyDescriptorType = new KeyDescriptorType();
        String str = "<a/>";
        keyDescriptorType.setKeyInfo(DocumentUtil.getDocument(str).getDocumentElement());

        SPSSODescriptorType spSSO = MetaDataBuilderDelegate.createSPSSODescriptor(false, keyDescriptorType, sloEndPoint,
                attributes, org);
        EntityDescriptorType entity = MetaDataBuilderDelegate.createEntityDescriptor(spSSO);
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.