Path: blob/master/src/java.xml.crypto/share/classes/javax/xml/crypto/AlgorithmMethod.java
41159 views
/*1* Copyright (c) 2005, Oracle and/or its affiliates. All rights reserved.2* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.3*4* This code is free software; you can redistribute it and/or modify it5* under the terms of the GNU General Public License version 2 only, as6* published by the Free Software Foundation. Oracle designates this7* particular file as subject to the "Classpath" exception as provided8* by Oracle in the LICENSE file that accompanied this code.9*10* This code is distributed in the hope that it will be useful, but WITHOUT11* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or12* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License13* version 2 for more details (a copy is included in the LICENSE file that14* accompanied this code).15*16* You should have received a copy of the GNU General Public License version17* 2 along with this work; if not, write to the Free Software Foundation,18* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.19*20* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA21* or visit www.oracle.com if you need additional information or have any22* questions.23*/24/*25* $Id: AlgorithmMethod.java,v 1.4 2005/05/10 15:47:41 mullan Exp $26*/27package javax.xml.crypto;2829import java.security.spec.AlgorithmParameterSpec;3031/**32* An abstract representation of an algorithm defined in the XML Security33* specifications. Subclasses represent specific types of XML security34* algorithms, such as a {@link javax.xml.crypto.dsig.Transform}.35*36* @author Sean Mullan37* @author JSR 105 Expert Group38* @since 1.639*/40public interface AlgorithmMethod {4142/**43* Returns the algorithm URI of this <code>AlgorithmMethod</code>.44*45* @return the algorithm URI of this <code>AlgorithmMethod</code>46*/47String getAlgorithm();4849/**50* Returns the algorithm parameters of this <code>AlgorithmMethod</code>.51*52* @return the algorithm parameters of this <code>AlgorithmMethod</code>.53* Returns <code>null</code> if this <code>AlgorithmMethod</code> does54* not require parameters and they are not specified.55*/56AlgorithmParameterSpec getParameterSpec();57}585960