StreamSecurityMode implementation