Zend Framework  3.0
Public Member Functions | Public Attributes | Protected Attributes | List of all members
AbstractKey Class Reference

Public Member Functions

 getSize ()
 Get key size in bits.
 
 getOpensslKeyResource ()
 Retrieve openssl key resource.
 
 encrypt ($data)
 Encrypt using this key.
 
 decrypt ($data)
 Decrypt using this key.
 
 toString ()
 Get string representation of this key.
 
 __toString ()
 

Public Attributes

const DEFAULT_KEY_SIZE = 2048
 

Protected Attributes

 $pemString = null
 
 $opensslKeyResource = null
 
 $details = []
 

Member Function Documentation

__toString ( )
Returns
string
decrypt (   $data)
abstract

Decrypt using this key.

Parameters
string$data
Returns
string
encrypt (   $data)
abstract

Encrypt using this key.

Parameters
string$data
Returns
string
getOpensslKeyResource ( )

Retrieve openssl key resource.

Returns
resource
getSize ( )

Get key size in bits.

Returns
int
toString ( )
abstract

Get string representation of this key.

Returns
string

Member Data Documentation

$details = []
protected
$opensslKeyResource = null
protected
$pemString = null
protected
const DEFAULT_KEY_SIZE = 2048