Tabnine Logo
KeyDescriptor.setKeyInfo
Code IndexAdd Tabnine to your IDE (free)

How to use
setKeyInfo
method
in
org.opensaml.saml2.metadata.KeyDescriptor

Best Java code snippets using org.opensaml.saml2.metadata.KeyDescriptor.setKeyInfo (Showing top 7 results out of 315)

origin: cloudfoundry/uaa

protected KeyDescriptor getKeyDescriptor(UsageType type, KeyInfo key) {
  @SuppressWarnings("unchecked")
  SAMLObjectBuilder<KeyDescriptor> builder = (SAMLObjectBuilder<KeyDescriptor>) Configuration.getBuilderFactory()
      .getBuilder(KeyDescriptor.DEFAULT_ELEMENT_NAME);
  KeyDescriptor descriptor = builder.buildObject();
  descriptor.setUse(type);
  descriptor.setKeyInfo(key);
  return descriptor;
}
origin: apache/cloudstack

signKeyDescriptor.setKeyInfo(keyInfoGenerator.generate(signingCredential));
encKeyDescriptor.setKeyInfo(keyInfoGenerator.generate(encryptionCredential));
spSSODescriptor.getKeyDescriptors().add(signKeyDescriptor);
spSSODescriptor.getKeyDescriptors().add(encKeyDescriptor);
origin: org.opensaml/opensaml

/** {@inheritDoc} */
protected void processChildElement(XMLObject parentSAMLObject, XMLObject childSAMLObject)
    throws UnmarshallingException {
  KeyDescriptor keyDescriptor = (KeyDescriptor) parentSAMLObject;
  if (childSAMLObject instanceof KeyInfo) {
    keyDescriptor.setKeyInfo((KeyInfo) childSAMLObject);
  } else if (childSAMLObject instanceof EncryptionMethod) {
    keyDescriptor.getEncryptionMethods().add((EncryptionMethod) childSAMLObject);
  } else {
    super.processChildElement(parentSAMLObject, childSAMLObject);
  }
}
origin: org.wso2.carbon.identity.metadata.saml2/org.wso2.carbon.identity.outbound.metadata.saml2

/**
 * Creates the key descriptor element with new key info each time called.
 *
 * @return KeyDescriptor with a new KeyInfo element.
 * @throws MetadataException
 */
private KeyDescriptor createKeyDescriptor() throws MetadataException {
  if (log.isDebugEnabled()) {
    log.debug("Creating the KeyDescriptor element");
  }
  KeyDescriptor keyDescriptor = BuilderUtil.createSAMLObject(ConfigElements.FED_METADATA_NS, "KeyDescriptor", "");
  keyDescriptor.setUse(UsageType.SIGNING);
  keyDescriptor.setKeyInfo(createKeyInfo());
  return keyDescriptor;
}
origin: org.springframework.security.extensions/spring-security-saml2-core

protected KeyDescriptor getKeyDescriptor(UsageType type, KeyInfo key) {
  SAMLObjectBuilder<KeyDescriptor> builder = (SAMLObjectBuilder<KeyDescriptor>) Configuration.getBuilderFactory().getBuilder(KeyDescriptor.DEFAULT_ELEMENT_NAME);
  KeyDescriptor descriptor = builder.buildObject();
  descriptor.setUse(type);
  descriptor.setKeyInfo(key);
  return descriptor;
}
origin: OpenConext/Mujina

encKeyDescriptor.setUse(UsageType.SIGNING);
encKeyDescriptor.setKeyInfo(keyInfoGenerator.generate(credential));
origin: be.fedict.eid-idp/eid-idp-common-saml2

KeyDescriptor keyDescriptor = Saml2Util.buildXMLObject(
    KeyDescriptor.class, KeyDescriptor.DEFAULT_ELEMENT_NAME);
keyDescriptor.setKeyInfo(getKeyInfo(identity));
keyDescriptor.setUse(UsageType.SIGNING);
idpssoDescriptor.getKeyDescriptors().add(keyDescriptor);
org.opensaml.saml2.metadataKeyDescriptorsetKeyInfo

Javadoc

Sets information about the key, including the key itself.

Popular methods of KeyDescriptor

  • getKeyInfo
    Gets information about the key, including the key itself.
  • getUse
    Gets the use of this key.
  • setUse
    Sets the use of this key.
  • getEncryptionMethods
    Gets the encryption methods that are supported by the entity.
  • getParent

Popular in Java

  • Parsing JSON documents to java classes using gson
  • setContentView (Activity)
  • getExternalFilesDir (Context)
  • scheduleAtFixedRate (Timer)
  • Window (java.awt)
    A Window object is a top-level window with no borders and no menubar. The default layout for a windo
  • BufferedImage (java.awt.image)
    The BufferedImage subclass describes an java.awt.Image with an accessible buffer of image data. All
  • Kernel (java.awt.image)
  • Random (java.util)
    This class provides methods that return pseudo-random values.It is dangerous to seed Random with the
  • Set (java.util)
    A Set is a data structure which does not allow duplicate elements.
  • IsNull (org.hamcrest.core)
    Is the value null?
  • Top 12 Jupyter Notebook extensions
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now