public static void saveAuthentication ( String url , boolean isCluster , final String authenticationToken , final boolean authenticationTokenIsPrivate , final String applicationKey , final int timeToLive , final String privateKey , final Map < String , ChannelPermissions > permissions , final OnRestWebserviceResponse onCompleted ) throws IOException , InvalidBalancerServerException , OrtcAuthenticationNotAuthorizedException { HashMap < String , LinkedList < ChannelPermissions > > permissionsMap = new HashMap < String , LinkedList < ChannelPermissions > > ( ) ; Set < String > channels = permissions . keySet ( ) ; for ( String channelName : channels ) { LinkedList < ChannelPermissions > channelPermissionList = new LinkedList < ChannelPermissions > ( ) ; channelPermissionList . add ( permissions . get ( channelName ) ) ; permissionsMap . put ( channelName , channelPermissionList ) ; } saveAuthentication ( url , isCluster , authenticationToken , authenticationTokenIsPrivate , applicationKey , timeToLive , privateKey , permissionsMap , onCompleted ) ; }
Asynchronously saves the authentication token channels permissions in the ORTC server .