1 Mart 2017 Çarşamba

Spring AuthenticationProvider Arayüzü

Giriş
Spring Security çatısına ait bu arayüzü gerçekleştiren sınıf ProviderManager.

authenticate metodu
İmzası şöyle
Authentication authenticate(Authentication auth);
Açıklaması şöyle
Returns: a fully authenticated object including credentials. May return null if the AuthenticationProvider is unable to support authentication of the passed Authentication object. In such a case, the next AuthenticationProvider that supports the presented Authentication class will be tried.
ProviderManager bu metodu gerçekleştirirken önemli bilgileri siler. Açıklaması şöyle
By default (from Spring Security 3.1 onwards) the ProviderManager will attempt to clear any sensitive credentials information from the Authentication object which is returned by a successful authentication request. This prevents information like passwords being retained longer than necessary.



Hiç yorum yok:

Yorum Gönder