• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*
2  * Copyright (c) 1996, 2015, Oracle and/or its affiliates. All rights reserved.
3  * Copyright (C) 2014 The Android Open Source Project
4  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
5  *
6  * This code is free software; you can redistribute it and/or modify it
7  * under the terms of the GNU General Public License version 2 only, as
8  * published by the Free Software Foundation.  Oracle designates this
9  * particular file as subject to the "Classpath" exception as provided
10  * by Oracle in the LICENSE file that accompanied this code.
11  *
12  * This code is distributed in the hope that it will be useful, but WITHOUT
13  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
14  * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
15  * version 2 for more details (a copy is included in the LICENSE file that
16  * accompanied this code).
17  *
18  * You should have received a copy of the GNU General Public License version
19  * 2 along with this work; if not, write to the Free Software Foundation,
20  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
21  *
22  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
23  * or visit www.oracle.com if you need additional information or have any
24  * questions.
25  */
26 
27 
28 package java.security;
29 
30 import java.util.*;
31 import java.io.*;
32 import sun.security.jca.*;
33 import java.nio.ByteBuffer;
34 import java.security.spec.AlgorithmParameterSpec;
35 
36 @SuppressWarnings({"unchecked", "deprecation", "all"})
37 public abstract class Signature extends java.security.SignatureSpi {
38 
Signature(java.lang.String algorithm)39 protected Signature(java.lang.String algorithm) { throw new RuntimeException("Stub!"); }
40 
getInstance(java.lang.String algorithm)41 public static java.security.Signature getInstance(java.lang.String algorithm) throws java.security.NoSuchAlgorithmException { throw new RuntimeException("Stub!"); }
42 
getInstance(java.lang.String algorithm, java.lang.String provider)43 public static java.security.Signature getInstance(java.lang.String algorithm, java.lang.String provider) throws java.security.NoSuchAlgorithmException, java.security.NoSuchProviderException { throw new RuntimeException("Stub!"); }
44 
getInstance(java.lang.String algorithm, java.security.Provider provider)45 public static java.security.Signature getInstance(java.lang.String algorithm, java.security.Provider provider) throws java.security.NoSuchAlgorithmException { throw new RuntimeException("Stub!"); }
46 
getProvider()47 public final java.security.Provider getProvider() { throw new RuntimeException("Stub!"); }
48 
initVerify(java.security.PublicKey publicKey)49 public final void initVerify(java.security.PublicKey publicKey) throws java.security.InvalidKeyException { throw new RuntimeException("Stub!"); }
50 
initVerify(java.security.cert.Certificate certificate)51 public final void initVerify(java.security.cert.Certificate certificate) throws java.security.InvalidKeyException { throw new RuntimeException("Stub!"); }
52 
initSign(java.security.PrivateKey privateKey)53 public final void initSign(java.security.PrivateKey privateKey) throws java.security.InvalidKeyException { throw new RuntimeException("Stub!"); }
54 
initSign(java.security.PrivateKey privateKey, java.security.SecureRandom random)55 public final void initSign(java.security.PrivateKey privateKey, java.security.SecureRandom random) throws java.security.InvalidKeyException { throw new RuntimeException("Stub!"); }
56 
sign()57 public final byte[] sign() throws java.security.SignatureException { throw new RuntimeException("Stub!"); }
58 
sign(byte[] outbuf, int offset, int len)59 public final int sign(byte[] outbuf, int offset, int len) throws java.security.SignatureException { throw new RuntimeException("Stub!"); }
60 
verify(byte[] signature)61 public final boolean verify(byte[] signature) throws java.security.SignatureException { throw new RuntimeException("Stub!"); }
62 
verify(byte[] signature, int offset, int length)63 public final boolean verify(byte[] signature, int offset, int length) throws java.security.SignatureException { throw new RuntimeException("Stub!"); }
64 
update(byte b)65 public final void update(byte b) throws java.security.SignatureException { throw new RuntimeException("Stub!"); }
66 
update(byte[] data)67 public final void update(byte[] data) throws java.security.SignatureException { throw new RuntimeException("Stub!"); }
68 
update(byte[] data, int off, int len)69 public final void update(byte[] data, int off, int len) throws java.security.SignatureException { throw new RuntimeException("Stub!"); }
70 
update(java.nio.ByteBuffer data)71 public final void update(java.nio.ByteBuffer data) throws java.security.SignatureException { throw new RuntimeException("Stub!"); }
72 
getAlgorithm()73 public final java.lang.String getAlgorithm() { throw new RuntimeException("Stub!"); }
74 
toString()75 public java.lang.String toString() { throw new RuntimeException("Stub!"); }
76 
77 @Deprecated
setParameter(java.lang.String param, java.lang.Object value)78 public final void setParameter(java.lang.String param, java.lang.Object value) throws java.security.InvalidParameterException { throw new RuntimeException("Stub!"); }
79 
setParameter(java.security.spec.AlgorithmParameterSpec params)80 public final void setParameter(java.security.spec.AlgorithmParameterSpec params) throws java.security.InvalidAlgorithmParameterException { throw new RuntimeException("Stub!"); }
81 
getParameters()82 public final java.security.AlgorithmParameters getParameters() { throw new RuntimeException("Stub!"); }
83 
84 @Deprecated
getParameter(java.lang.String param)85 public final java.lang.Object getParameter(java.lang.String param) throws java.security.InvalidParameterException { throw new RuntimeException("Stub!"); }
86 
clone()87 public java.lang.Object clone() throws java.lang.CloneNotSupportedException { throw new RuntimeException("Stub!"); }
88 
89 @libcore.api.CorePlatformApi
getCurrentSpi()90 public java.security.SignatureSpi getCurrentSpi() { throw new RuntimeException("Stub!"); }
91 
92 protected static final int SIGN = 2; // 0x2
93 
94 protected static final int UNINITIALIZED = 0; // 0x0
95 
96 protected static final int VERIFY = 3; // 0x3
97 
98 protected int state = 0; // 0x0
99 }
100 
101