/* * Copyright (c) 2005, Oracle and/or its affiliates. All rights reserved. * ORACLE PROPRIETARY/CONFIDENTIAL. Use is subject to license terms. * * * * * * * * * * * * * * * * * * * * */ /* * $Id: KeyName.java,v 1.4 2005/05/10 16:35:35 mullan Exp $ */ package javax.xml.crypto.dsig.keyinfo; import javax.xml.crypto.XMLStructure; /** * A representation of the XML KeyName element as * defined in the * W3C Recommendation for XML-Signature Syntax and Processing. * A KeyName object contains a string value which may be used * by the signer to communicate a key identifier to the recipient. The * XML Schema Definition is defined as: * *
 * <element name="KeyName" type="string"/>
 * 
* * A KeyName instance may be created by invoking the * {@link KeyInfoFactory#newKeyName newKeyName} method of the * {@link KeyInfoFactory} class, and passing it a String * representing the name of the key; for example: *
 * KeyInfoFactory factory = KeyInfoFactory.getInstance("DOM");
 * KeyName keyName = factory.newKeyName("Alice");
 * 
* * @author Sean Mullan * @author JSR 105 Expert Group * @since 1.6 * @see KeyInfoFactory#newKeyName(String) */ public interface KeyName extends XMLStructure { /** * Returns the name of this KeyName. * * @return the name of this KeyName (never * null) */ String getName(); }