core.crypto
Class SimplePrincipal
java.lang.Object
core.crypto.SimplePrincipal
- All Implemented Interfaces:
- Principal
public class SimplePrincipal
- extends Object
- implements Principal
SimplePrincipal This class represents an simplified Princial. It is utilized
by Certificates and the methods dealing with generation and import of key
pairs.
Copyright (c) 2006 Sebastian Erdweg
Copyright (c) 2006 Dominik Schulz
Copyright (c) 2006 Florian Lindner
Copyright (c) 2006 Betim Berjani
This file is part of FlexiCrypt.
FlexiCrypt is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.
FlexiCrypt 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 General Public License for more details.
You should have received a copy of the GNU General Public License
along with FlexiCrypt; if not, write to the Free Software
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
- Author:
- Dominik
- See Also:
Principal
,
Certificates
SimplePrincipal
public SimplePrincipal()
- Constructs an empty principal.
SimplePrincipal
public SimplePrincipal(Principal p)
- Encapsulates the principal p in this simple principal.
- Parameters:
p
-
SimplePrincipal
public SimplePrincipal(Name n)
SimplePrincipal
public SimplePrincipal(String in)
getCommonName
public String getCommonName()
- Returns:
- the commonName
setCommonName
public void setCommonName(String commonName)
- Parameters:
commonName
- the commonName to set
getCountry
public String getCountry()
- Returns:
- the country
setCountry
public void setCountry(String country)
- Parameters:
country
- the country to set
getLocationCity
public String getLocationCity()
- Returns:
- the locationCity
setLocationCity
public void setLocationCity(String locationCity)
- Parameters:
locationCity
- the locationCity to set
getOrganization
public String getOrganization()
- Returns:
- the organization
setOrganization
public void setOrganization(String organization)
- Parameters:
organization
- the organization to set
getOrganizationUnit
public String getOrganizationUnit()
- Returns:
- the organizationUnit
setOrganizationUnit
public void setOrganizationUnit(String organizationUnit)
- Parameters:
organizationUnit
- the organizationUnit to set
getName
public String getName()
- Specified by:
getName
in interface Principal