You can do it in a round-about way. There is a header parameter called "CipherSuite." This parameter will only appear if its an HTTPS page. Within Apex, you can call ApexPages.currentPage().getHeaders() and evaluate that CipherSuite exists and is not Null.
As a test, run this in the execute anonymous section of the system log in your DE org:
I don't think you can do it in Apex directly. Check out my thread history though. I did post how to do this in a thread with a title geared toward this.
You can do it in a round-about way. There is a header parameter called "CipherSuite." This parameter will only appear if its an HTTPS page. Within Apex, you can call ApexPages.currentPage().getHeaders() and evaluate that CipherSuite exists and is not Null.
As a test, run this in the execute anonymous section of the system log in your DE org:
You can do it in a round-about way. There is a header parameter called "CipherSuite." This parameter will only appear if its an HTTPS page. Within Apex, you can call ApexPages.currentPage().getHeaders() and evaluate that CipherSuite exists and is not Null.
As a test, run this in the execute anonymous section of the system log in your DE org:
system.debug(ApexPages.currentPage().getHeaders());
You can temporarily disable "require secure connection" under Setup > Security Controls > Session Settings
and run execute anonymous in HTTP mode. You will see that the CipherSuite header no longer appears.
Just remember to turn "require secure connection" back on after you test!
All Answers
You can do it in a round-about way. There is a header parameter called "CipherSuite." This parameter will only appear if its an HTTPS page. Within Apex, you can call ApexPages.currentPage().getHeaders() and evaluate that CipherSuite exists and is not Null.
As a test, run this in the execute anonymous section of the system log in your DE org:
system.debug(ApexPages.currentPage().getHeaders());
You can temporarily disable "require secure connection" under Setup > Security Controls > Session Settings
and run execute anonymous in HTTP mode. You will see that the CipherSuite header no longer appears.
Just remember to turn "require secure connection" back on after you test!