org.logi.crypto.keys
Class RSABlindingFactor

java.lang.Object
  |
  +--org.logi.crypto.Crypto
        |
        +--org.logi.crypto.sign.BlindingFactor
              |
              +--org.logi.crypto.keys.RSABlindingFactor

public class RSABlindingFactor
extends BlindingFactor

Instances of this class hold a blinding factor for use with a particular key-pair. Only use eachblinding factor once!

Version:
1.1.0
Author:
Logi Ragnarsson (logir@logi.org)

Fields inherited from class org.logi.crypto.Crypto
BIT, cdsPath, EMPTY_ARRAY, FOUR, keySource, NIBBLE, ONE, primeCertainty, random, TWO, ZERO
 
Constructor Summary
RSABlindingFactor(java.math.BigInteger factor)
           
 
Method Summary
 java.math.BigInteger getFactor()
           
static RSABlindingFactor parseCDS(java.lang.String[] param)
          Used by Crypto.fromString when parsing a CDS.
 java.lang.String toString()
           
 
Methods inherited from class org.logi.crypto.Crypto
binString, binString, ensureArrayLength, ensureArrayLength, equal, equalRelaxed, equalSub, fromHexNibble, fromHexString, fromString, fromString, hexString, hexString, hexString, hexString, hexString, initRandom, initRandom, makeClass, makeInt, makeLong, makeSessionKey, pastSpace, pickBits, pickBits, prettyPrint, prettyPrint, readBlock, readInt, trimArrayLength, trimArrayLength, trimLeadingZeroes, writeBytes, writeBytes, writeInt
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

RSABlindingFactor

public RSABlindingFactor(java.math.BigInteger factor)
Method Detail

getFactor

public java.math.BigInteger getFactor()

parseCDS

public static RSABlindingFactor parseCDS(java.lang.String[] param)
                                  throws InvalidCDSException
Used by Crypto.fromString when parsing a CDS.

A valid CDS can be created by calling the toString() method.

Throws:
InvalidCDSException - if the CDS is malformed.
See Also:
Crypto.fromString(String)

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object


Copyright (c) 1997-2001 Logi Ragnarsson - Distributed under the GPL