Lines Matching refs:options

69     public function challenge(?string $received = null, array $options = []): SaslContext
71 $options = $options + self::DEFAULTS;
75 $response = $this->generateServerResponse($received, $options);
77 $response = $this->generateClientResponse($received, $options);
87 protected function generateClientResponse(?Message $message, $options): ?string
93 return $this->createClientResponse($message, $options);
101 $this->context->setHasSecurityLayer($options['use_integrity'] || $options['use_privacy']);
112 protected function generateServerResponse(?Message $received, array $options): ?string
115 $response = $this->generateServerChallenge($options);
117 $response = $this->generateServerVerification($received, $options);
135 protected function createClientResponse(Message $message, array $options): string
137 $password = $options['password'] ?? '';
139 if ($options['use_privacy']) {
141 } elseif ($options['use_integrity']) {
148 'username' => $options['username'] ?? null,
149 'digest-uri' => isset($options['host']) ? ($options['service'] . '/' . $options['host']) : null,
151 'nonce_size' => $options['nonce_size'],
152 'service' => $options['service']
154 if (isset($options['cnonce'])) {
155 $messageOpts['cnonce'] = $options['cnonce'];
157 if (isset($options['nonce'])) {
158 $messageOpts['nonce'] = $options['nonce'];
160 if (isset($options['cipher'])) {
161 $messageOpts['cipher'] = $options['cipher'];
185 if ($options['use_integrity'] || $options['use_privacy']) {
193 protected function generateServerVerification(Message $received, array $options): ?Message
203 $password = $options['password'] ?? null;
249 protected function generateServerChallenge(array $options): Message
252 if (isset($options['nonce'])) {
253 $messageOpts['nonce'] = $options['nonce'];
255 if (isset($options['cipher'])) {
256 $messageOpts['cipher'] = $options['cipher'];
259 DigestMD5MessageFactory::MESSAGE_SERVER_CHALLENGE, $options