public byte [ ] getPrivKeyBytes ( ) { if ( privKey == null ) { return null ; } else if ( privKey instanceof BCECPrivateKey ) { return bigIntegerToBytes ( ( ( BCECPrivateKey ) privKey ) . getD ( ) , 32 ) ; } else { return null ; } }
Returns a 32 byte array containing the private key or null if the key is encrypted or public only