public final static boolean validHandshakeType ( byte handshakeType ) { switch ( handshakeType ) { case RTMPConnection . RTMP_NON_ENCRYPTED : case RTMPConnection . RTMP_ENCRYPTED : case RTMPConnection . RTMP_ENCRYPTED_XTEA : case RTMPConnection . RTMP_ENCRYPTED_BLOWFISH : case RTMPConnection . RTMP_ENCRYPTED_UNK : return true ; } return false ; }
Returns whether or not a given handshake type is valid .