ApiKey

extends Omeka\Entity\AbstractEntity
Methods Summary
public
# prePersist( )

PrePersist


public
# setId( )
public
# getId( )
public
# setLabel( $label )
public
# getLabel( )
public
# setCredential( )
Set the key credential, storing it hashed.
public
# verifyCredential( string $credential )
Verify a key credential.
public
# setLastIp( $lastIp )
public
public
# setLastAccessed( DateTime $lastAccessed )
public
public
# setCreated( DateTime $created )
public
public
# setOwner( Omeka\Entity\User $owner = NULL )
public
# getOwner( )
protected
Methods inherited from Omeka\Entity\AbstractEntity
getResourceId()
Constants Summary
public int STRING_LENGTH
The length of the key identity and credential. If this changes the identity annotation must change as well.
# 32
public string STRING_CHARLIST
The allowed character list for the key identity and credential.
# 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890'
Properties Summary
protected $id
The key identity

# NULL
protected $label


# NULL
protected $credentialHash
The hashed key credential

# NULL
protected $lastIp


# NULL
protected $lastAccessed


# NULL
protected $created


# NULL
protected $owner
The associated user

# NULL