pandora
Class LinkBean

java.lang.Object
  |
  +--pandora.LinkBean

public class LinkBean
extends java.lang.Object

Bean used by link.jsp (referrer implementation).

alexis.grandemange@pagebox.net

Copyright (c) 2002-2003 Alexis Grandemange

This program is free software; you can redistribute it and/or
 modify it under the terms of the GNU Lesser General Public License
 as published by the Free Software Foundation; version 2.1 of the
 License.
 This library is distributed in the hope that it will be useful,
 but WITHOUT ANY WARRANTY; without even the implied warranty of
 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
 GNU Lesser General Public License for more details.
 A copy of the GNU Lesser General Public License lesser.txt should be
 included in the distribution.

Version:
0, 0, 1
Author:
Alexis Grandemange

Field Summary
private  byte[] encodedCert
          Certificate
private  java.lang.String msg
          Error message
private  java.lang.String name
          Name to encrypt
private  java.security.PrivateKey priv
          Private key
 
Constructor Summary
LinkBean(java.lang.String ksName, java.lang.String ksPasswd, java.lang.String alias, java.lang.String keyPasswd)
          Constructor.
 
Method Summary
 java.lang.String getCert()
          Returns the certificate to use to decrypt.
 java.lang.String getMessage()
          Returns error messages.
 java.lang.String getSignature()
          Returns the signature of name.
 void setName(java.lang.String name)
          Set the name to encrypt.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

name

private java.lang.String name
Name to encrypt


priv

private java.security.PrivateKey priv
Private key


encodedCert

private byte[] encodedCert
Certificate


msg

private java.lang.String msg
Error message

Constructor Detail

LinkBean

public LinkBean(java.lang.String ksName,
                java.lang.String ksPasswd,
                java.lang.String alias,
                java.lang.String keyPasswd)
Constructor.

Parameters:
ksName - key store path
ksPasswd - key store password
alias - name of the certificate in the keystore
keyPasswd - password of the private key in the keystore
Method Detail

setName

public void setName(java.lang.String name)
Set the name to encrypt.

Parameters:
name - user name and charging info

getCert

public java.lang.String getCert()
Returns the certificate to use to decrypt.

Returns:
certificate used to sign the name

getSignature

public java.lang.String getSignature()
Returns the signature of name.

Returns:
signature of name

getMessage

public java.lang.String getMessage()
Returns error messages.

Returns:
error string