PHP 클래스 sspmod_metarefresh_MetaLoader, simplesamlphp

저자: Andreas Åkre Solberg ([email protected])
파일 보기 프로젝트 열기: simplesamlphp/simplesamlphp 1 사용 예제들

공개 메소드들

메소드 설명
__construct ( $expire = NULL, $stateFile = NULL, $oldMetadataSrc = NULL ) Constructor
dumpMetadataStdOut ( ) This function writes the metadata to stdout.
getTypes ( ) : array Get the types of entities that will be loaded.
loadSource ( $source ) This function processes a SAML metadata file.
setTypes ( string | array $types ) Set the types of entities that will be loaded.
writeARPfile ( $config ) This function writes the metadata to an ARP file
writeMetadataFiles ( $outputDir ) This function writes the metadata to to separate files in the output directory.
writeMetadataSerialize ( string $outputDir ) Save metadata for loading with the 'serialize' metadata loader.
writeState ( ) This function writes the state array back to disk

비공개 메소드들

메소드 설명
addCachedMetadata ( $source )
addMetadata ( $filename, $metadata, $type, $template = NULL ) This function adds metadata from the specified file to the list of metadata.
createContext ( $source ) Create HTTP context, with any available caches taken into account
getTime ( )
loadXML ( $data, $source ) Parse XML metadata and return entities
saveState ( $source, $responseHeaders ) Store caching state data for a source

메소드 상세

__construct() 공개 메소드

Constructor
public __construct ( $expire = NULL, $stateFile = NULL, $oldMetadataSrc = NULL )

dumpMetadataStdOut() 공개 메소드

This function writes the metadata to stdout.
public dumpMetadataStdOut ( )

getTypes() 공개 메소드

Get the types of entities that will be loaded.
public getTypes ( ) : array
리턴 array The entity types allowed.

loadSource() 공개 메소드

This function processes a SAML metadata file.
public loadSource ( $source )
$source

setTypes() 공개 메소드

Set the types of entities that will be loaded.
public setTypes ( string | array $types )
$types string | array Either a string with the name of one single type allowed, or an array with a list of types. Pass an empty array to reset to all types of entities.

writeARPfile() 공개 메소드

This function writes the metadata to an ARP file
public writeARPfile ( $config )

writeMetadataFiles() 공개 메소드

This function writes the metadata to to separate files in the output directory.
public writeMetadataFiles ( $outputDir )

writeMetadataSerialize() 공개 메소드

Save metadata for loading with the 'serialize' metadata loader.
public writeMetadataSerialize ( string $outputDir )
$outputDir string The directory we should save the metadata to.

writeState() 공개 메소드

This function writes the state array back to disk
public writeState ( )