source: other-projects/trunk/gs3-release-maker/tasks/sshtaskdef/src/mindbright/security/RSAKey.java@ 14627

Last change on this file since 14627 was 14627, checked in by oranfry, 17 years ago

initial import of the gs3-release-maker

File size: 1.5 KB
Line 
1/******************************************************************************
2 *
3 * Copyright (c) 1998,99 by Mindbright Technology AB, Stockholm, Sweden.
4 * www.mindbright.se, [email protected]
5 *
6 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation; either version 2 of the License, or
9 * (at your option) any later version.
10 *
11 * This program is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 * GNU General Public License for more details.
15 *
16 *****************************************************************************
17 * $Author: mats $
18 * $Date: 2000/03/17 15:14:07 $
19 * $Name: rel1-2-1 $
20 *****************************************************************************/
21package mindbright.security;
22
23import java.math.BigInteger;
24
25public class RSAKey implements Key {
26
27 private BigInteger e;
28 private BigInteger n;
29
30 protected RSAKey(BigInteger e, BigInteger n) {
31 this.e = e;
32 this.n = n;
33 }
34
35 public String getAlgorithm() {
36 return "RSA";
37 }
38
39 public byte[] getEncoded() {
40 return null;
41 }
42
43 public String getFormat() {
44 return null;
45 }
46
47 public int bitLength() {
48 return n.bitLength();
49 }
50
51 public BigInteger getE() {
52 return e;
53 }
54
55 public BigInteger getN() {
56 return n;
57 }
58
59}
Note: See TracBrowser for help on using the repository browser.