File: AlgorithmParameters.java

package info (click to toggle)
bouncycastle 1.44%2Bdfsg-2
  • links: PTS, VCS
  • area: main
  • in suites: squeeze
  • size: 25,148 kB
  • ctags: 29,306
  • sloc: java: 277,890; xml: 1,881; sh: 974; makefile: 68
file content (84 lines) | stat: -rw-r--r-- 1,933 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84

package java.security;

import java.io.IOException;
import java.security.spec.AlgorithmParameterSpec;
import java.security.spec.InvalidParameterSpecException;

public class AlgorithmParameters extends Object
{
    private AlgorithmParametersSpi spi;
    private Provider provider;
    private String algorithm;

    protected AlgorithmParameters(
        AlgorithmParametersSpi paramSpi,
        Provider provider,
        String algorithm)
    {
        this.spi = paramSpi;
        this.provider = provider;
        this.algorithm = algorithm;
    }

    public final String getAlgorithm()
    {
        return algorithm;
    }

    public final byte[] getEncoded() throws IOException
    {
        return spi.engineGetEncoded();
    }

    public final byte[] getEncoded(String format) throws IOException
    {
        return spi.engineGetEncoded(format);
    }

    public static AlgorithmParameters getInstance(String algorithm)
    throws NoSuchAlgorithmException
    {
        return null;
    }

    public static AlgorithmParameters getInstance(
        String algorithm,
        String provider)
    throws NoSuchAlgorithmException, NoSuchProviderException
    {
        return null;
    }

    public final AlgorithmParameterSpec getParameterSpec(Class paramSpec)
    throws InvalidParameterSpecException
    {
        return spi.engineGetParameterSpec(paramSpec);
    }

    public final Provider getProvider()
    {
        return provider;
    }

    public final void init(AlgorithmParameterSpec paramSpec)
    throws InvalidParameterSpecException
    {
        spi.engineInit(paramSpec);
    }

    public final void init(byte[] params) throws IOException
    {
        spi.engineInit(params);
    }

    public final void init(byte[] params, String format) throws IOException
    {
        spi.engineInit(params, format);
    }

    public final String toString()
    {
        return spi.engineToString();
    }
}