Service/DeveloperGarden/Credential.php

Show: PublicProtectedPrivateinherited
Table of Contents
Zend Framework
LICENSE This source file is subject to the new BSD license that is bundled with this package in the file LICENSE.txt. It is also available through the world-wide-web at this URL: http://framework.zend.com/license/new-bsd If you did not receive a copy of the license and are unable to obtain it through the world-wide-web, please send an email to [email protected] so we can send you a copy immediately.
Category
Zend  
Copyright
Copyright (c) 2005-2014 Zend Technologies USA Inc. (http://www.zend.com)  
License
New BSD License  
Package
Zend_Service  
Subpackage
DeveloperGarden  
Version
$Id$  

\Zend_Service_DeveloperGarden_Credential

Package: Zend_Service\DeveloperGarden
Author
Marco Kaiser  
Category
Zend  
Copyright
Copyright (c) 2005-2014 Zend Technologies USA Inc. (http://www.zend.com)  
License
New BSD License  

Properties

>VPropertyprotectedstring $_password = null
Service Password
Default valuenullDetails
Type
string
>VPropertyprotectedstring $_realm = 't-online.de'
Service Realm - default t-online.de
Default value't-online.de'Details
Type
string
>VPropertyprotectedstring $_username = null
Service Auth Username
Default valuenullDetails
Type
string

Methods

methodpublic__construct(string $username = null, string $password = null, string $realm = null) : \Zend_Service_DeveloperGarden_Credential

constructor to init the internal data

Parameters
NameTypeDescription
$usernamestring
$passwordstring
$realmstring
Returns
TypeDescription
\Zend_Service_DeveloperGarden_Credential
methodpublicgetPassword() : string

returns the current configured password

Returns
TypeDescription
string
methodpublicgetRealm() : string | null

returns the realm

Returns
TypeDescription
string | null
methodpublicgetUsername(bool $withRealm = false) : string | null

returns the username

if $withRealm == true we combine username and realm like username@realm
Parameters
NameTypeDescription
$withRealmbool
Returns
TypeDescription
string | null
methodpublicsetPassword(string $password = null) : \Zend_Service_DeveloperGarden_Client_ClientAbstract

split the password into an array

Parameters
NameTypeDescription
$passwordstring
Returns
TypeDescription
\Zend_Service_DeveloperGarden_Client_ClientAbstract
Throws
ExceptionDescription
\Zend_Service_DeveloperGarden_Client_Exception
methodpublicsetRealm(string $realm = null) : \Zend_Service_DeveloperGarden_Client_ClientAbstract

set the new realm

Parameters
NameTypeDescription
$realmstring
Returns
TypeDescription
\Zend_Service_DeveloperGarden_Client_ClientAbstract
Throws
ExceptionDescription
\Zend_Service_DeveloperGarden_Client_Exception
methodpublicsetUsername(string $username = null) : \Zend_Service_DeveloperGarden_Client_ClientAbstract

set the new login

Parameters
NameTypeDescription
$usernamestring
Returns
TypeDescription
\Zend_Service_DeveloperGarden_Client_ClientAbstract
Throws
ExceptionDescription
\Zend_Service_DeveloperGarden_Client_Exception
Documentation was generated by phpDocumentor 2.2.0 .