personne.java
来自「加密解密RSA」· Java 代码 · 共 57 行
JAVA
57 行
package rsa;
import java.io.*;
import java.math.*;
public class Personne
implements Serializable
{
protected String nom;
protected BigInteger modulos;
protected BigInteger clePublic;
public Personne(String nom, BigInteger modulos, BigInteger clePublic)
{
this.nom = nom;
this.modulos = modulos;
this.clePublic = clePublic;
}
private void readObject(ObjectInputStream ois) throws ClassNotFoundException,
IOException
{
ois.defaultReadObject();
}
private void writeObject(ObjectOutputStream oos) throws IOException
{
oos.defaultWriteObject();
}
public String getNom()
{
return nom;
}
public BigInteger getClePublic()
{
return clePublic;
}
public void setClePublic(BigInteger clePublic)
{
this.clePublic = clePublic;
}
public BigInteger getModulos()
{
return modulos;
}
public void setModulos(BigInteger modulos)
{
this.modulos = modulos;
}
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?