Replace CookieComponent::type() with CookieComponent::encryption().

I renamed the method because `type()` wasn't intuitive enough for me.