private final Feature[] features;
public StreamFeatureAuthProcessor(Set<AuthMechanism> mechanisms) {
super();
Mechanisms feature = new Mechanisms();
for (AuthMechanism mechanism : mechanisms) {
feature.add(mechanism.support());
}
this.features = new Feature[] { feature, Register.FEATURE };
}