Examples of itemKeyName()


Examples of org.apache.xml.security.keys.KeyInfo.itemKeyName()

                List keybindings = locateResult.getUnverifiedKeyBindingList();
                UnverifiedKeyBinding keybinding = (UnverifiedKeyBinding) keybindings
                        .get(0);
                KeyInfo keyInfo = keybinding.getKeyInfo();
                KeyName keyName = keyInfo.itemKeyName(0);
                return keyName.getKeyName();
            }

        } catch (Exception ex) {
            if (LOG.isDebugEnabled()) {
View Full Code Here

Examples of org.apache.xml.security.keys.KeyInfo.itemKeyName()

                List keybindings = locateResult.getUnverifiedKeyBindingList();
                UnverifiedKeyBinding keybinding = (UnverifiedKeyBinding) keybindings
                        .get(0);
                KeyInfo keyInfo = keybinding.getKeyInfo();
                KeyName keyName = keyInfo.itemKeyName(0);
                return keyName.getKeyName();
            }

        } catch (Exception ex) {
            if (LOG.isDebugEnabled()) {
View Full Code Here

Examples of org.apache.xml.security.keys.KeyInfo.itemKeyName()

                for (int i = 0; i < keybindings.size(); i++) {
                    UnverifiedKeyBinding unverifiedKeybinding = (UnverifiedKeyBinding) keybindings
                            .get(i);
                    KeyInfo keyInfo = unverifiedKeybinding.getKeyInfo();
                    aliases[i] = keyInfo.itemKeyName(0).getKeyName();
                }
                return aliases;
            }

        } catch (Exception ex) {
View Full Code Here

Examples of org.apache.xml.security.keys.KeyInfo.itemKeyName()

            if (identifer == null) {
                KeyInfo keyInfo = keybinding.getKeyInfo();

                if (keyInfo != null) {
                    try {
                        KeyName keyName = keyInfo.itemKeyName(0);
                        if (keyName != null) {
                            aliases = new String[] { keyName.getKeyName() };
                        }
                    } catch (XMLSecurityException xme) {
                        throw new XKMSException(xme);
View Full Code Here

Examples of org.apache.xml.security.keys.KeyInfo.itemKeyName()

        KeyInfo keyInfo = abstractType.getKeyInfo();
        if (keyInfo != null) {
            try {

                KeyName itemKeyName = keyInfo.itemKeyName(0);
                if (itemKeyName != null) {
                    abstractType.setKeyName(itemKeyName.getKeyName());
                }

                PublicKey public1 = keyInfo.getPublicKey();
View Full Code Here

Examples of org.apache.xml.security.keys.KeyInfo.itemKeyName()

    if (ki == null)
      return null;
   

    // First check for a known key name
    KeyName keyName = ki.itemKeyName(0);
    if (keyName != null) {
      return (mapKeyName(keyName.getKeyName()));
    }

    // Decrypt any encryptedKey structures
View Full Code Here

Examples of org.apache.xml.security.keys.KeyInfo.itemKeyName()

    KeyInfo kiek = encryptedKey.getKeyInfo();
    if (kiek == null) {
      return null;
    }

    KeyName kekKeyName = kiek.itemKeyName(0);
    if (kekKeyName != null) {
      kek = mapKeyName(kekKeyName.getKeyName());
    }
    else {
View Full Code Here

Examples of org.apache.xml.security.keys.KeyInfo.itemKeyName()

    if (ki == null)
      return null;
   

    // First check for a known key name
    KeyName keyName = ki.itemKeyName(0);
    if (keyName != null) {
      return (mapKeyName(keyName.getKeyName()));
    }

    // Decrypt any encryptedKey structures
View Full Code Here

Examples of org.apache.xml.security.keys.KeyInfo.itemKeyName()

    KeyInfo kiek = encryptedKey.getKeyInfo();
    if (kiek == null) {
      return null;
    }

    KeyName kekKeyName = kiek.itemKeyName(0);
    if (kekKeyName != null) {
      kek = mapKeyName(kekKeyName.getKeyName());
    }
    else {
View Full Code Here

Examples of org.apache.xml.security.keys.KeyInfo.itemKeyName()

        if (ki == null) {
            return null;
        }

        // First check for a known key name
        KeyName keyName = ki.itemKeyName(0);
        if (keyName != null) {
            return (mapKeyName(keyName.getKeyName()));
        }

        // Decrypt any encryptedKey structures
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.