namespace Akenti class PublicKey : public ref_ptr<PublicKeyImpl>

A PublicKey object is a reference-count pointer that wraps a PublicKeyImpl object

Inheritance:


Public Methods

virtual ~ProviderImpl ()
Deletes this object
virtual MessageDigest getMessageDigest (const string& alg) const
Returns a MessageDigest object given the name of a standard algorithm specified by alg such as MD5
virtual Signature getSignature (const string& alg) const
Returns a Signature object given the name of a standard algorithm specified by alg such as MD5 or SHA1
virtual KeyFactory getKeyFactory () const
Returns a KeyFactory object
virtual CertificateFactory getCertificateFactory () const
Returns a CertificateFactory object
virtual Base64 getBase64 () const
Returns a Base64 object
virtual SSLContext createSSLContext (SSLConstants::Version version, bool isClient) const
Create a either a server or client security context
void setDefaultSSLServerContext (const SSLContext& serverContext)
Sets a default server security context
const SSLContext& getDefaultSSLServerContext () const
Returns the default server security context
void setDefaultSSLClientContext (const SSLContext& clientContext)
Sets a default client security context
const SSLContext& getDefaultSSLClientContext () const
Returns the default server security context
virtual SecureSocketImpl* createSecureSocketImpl (const SSLContext& ctx) const
Interface to create a SecureSocketImpl
PublicKey (PublicKeyImpl *impl = NULL)
Constructs a PublicKey given a PublickeyImpl object
~PublicKey ()
Decrements the count of references to the wrapped PublickeyImpl object

Inherited from ref_ptr:

Public Methods

ref_ptr & operator=(const ref_ptr& rhs)
T* operator->() const
operator void*() const
T* get() const

Documentation

A PublicKey object is a reference-count pointer that wraps a PublicKeyImpl object.
virtual ~ProviderImpl()
Deletes this object

virtual MessageDigest getMessageDigest(const string& alg) const
Returns a MessageDigest object given the name of a standard algorithm specified by alg such as MD5. Applications need not call this function. For convenience, the static method MessageDigest::getInstance(const string&) should be used.
Throws:
SecurityException if algorithm is not supported
Returns:
a MessageDigest object
Parameters:
alg - string standard name of an algorithm
See Also:
getInstance(const string& alg)
MessageDigestImpl

virtual Signature getSignature(const string& alg) const
Returns a Signature object given the name of a standard algorithm specified by alg such as MD5 or SHA1. Applications need not call this function. For convenience, the static method Signature::getInstance(const string&) should be used.
Throws:
SecurityException if algorithm is not supported
Returns:
a Signature object
Parameters:
alg - string standard name of a Signature algorithm
See Also:
getInstance(const string& alg)
SignatureImpl

virtual KeyFactory getKeyFactory() const
Returns a KeyFactory object. Applications need not call this function. Instead, the static method KeyFactory::getInstance() should be used.
Returns:
a KeyFactory object
See Also:
getInstance()
KeyFactoryImpl

virtual CertificateFactory getCertificateFactory() const
Returns a CertificateFactory object. Applications need not call this function. Instead, the static method CertificateFactory#getInstance() should be used.
Returns:
a CertificateFactory object
See Also:
getInstance()
CertificateFactoryImpl

virtual Base64 getBase64() const
Returns a Base64 object. Applications need not call this function. Instead, the static method Base64::getInstance() should be used.
Returns:
a Base64 object
See Also:
getInstance()
Base64Impl

virtual SSLContext createSSLContext(SSLConstants::Version version, bool isClient) const
Create a either a server or client security context. The concrete ProviderImpl can create whatever sort of security context it needs.
Returns:
A security context
Parameters:
context - version number

void setDefaultSSLServerContext(const SSLContext& serverContext)
Sets a default server security context

const SSLContext& getDefaultSSLServerContext() const
Returns the default server security context

void setDefaultSSLClientContext(const SSLContext& clientContext)
Sets a default client security context

const SSLContext& getDefaultSSLClientContext() const
Returns the default server security context

virtual SecureSocketImpl* createSecureSocketImpl(const SSLContext& ctx) const
Interface to create a SecureSocketImpl. The concrete providerImpl should create the type of SecureSocketImpl it needs.

PublicKey(PublicKeyImpl *impl = NULL)
Constructs a PublicKey given a PublickeyImpl object. Typically a KeyFactory is used to create an instance of this class.
Parameters:
impl - wrapped PublicKeyImpl object.
See Also:
PublicKeyImpl
ref_ptr
initPublicKey(const string&, const string&, const string&)
generateRSAKeyPair(int, unsigned long)
generateDSAKeyPair(int, const string&)
getPublicKey()

~PublicKey()
Decrements the count of references to the wrapped PublickeyImpl object. If this count is zero, then the wrapped object is deleted.
See Also:
ref_ptr


This class has no child classes.
Author:
Srilekha Mudumbai Abdelilah Essiari
Version:
1.1 00/05/01
See Also:
ref_ptr
PublicKeyImpl
getPublicKey()
getKeyEncoded(const string&, const PublicKey&)
initPublicKey(const string&, const string&, const string&)
generateRSAKeyPair(int, unsigned long)
generateDSAKeyPair(int, const string&)
initVerify(const PublicKey&)

alphabetic index hierarchy of classes


this page has been generated automatically by doc++

(c)opyright by Malte Zöckler, Roland Wunderling
contact: doc++@zib.de